Piotr Synowiec
Piotr Synowiec
~1 min read

Categories

Tags

  • key example key.txt
      -----BEGIN PRIVATE KEY-----
      ... key content
      -----END PRIVATE KEY-----
    
  • encode key
      base64 -w 0 key.txt > encoded.key.txt
    
  • copy content of encoded.key.txt to you yaml open secret file variable ie. PRIVATE_KEY
  • seal it
  • deploy
  • in Python to get exact the same string with key use
      import base64
      import os
        
      key = base64.b64decode(os.getenv("PRIVATE_KEY")).decode("utf-8)