Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

add environment variable supporting different pem files #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add environment variable supporting different pem files #24

wants to merge 1 commit into from

Conversation

tuxpower
Copy link

Instead of having a encrypted pem file hardcoded, this PR introduces a
environment variable CIPHER_FILE that can be used for different accounts
e.g. dev, staging, prod.

Instead of having a encrypted pem file hardcoded, this PR introduces a
environment variable CIPHER_FILE that can be used for different accounts
e.g. dev, staging, prod.
"""Decrypt the Ciphertext Blob to get USERNAME's pem file"""
try:
with open('encrypted_pem.txt', 'r') as encrypted_pem:
with open('cipherfile', 'r') as encrypted_pem:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cipherfile is a variable now. it shouldn't be surrounded by any quotes otherwise it will look for a file named "cipherfile".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants