pubkey stuff

This commit is contained in:
Wolfgang Hottgenroth 2021-05-06 16:46:19 +02:00
parent 0377278ea0
commit 78439a7ed8
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 3 additions and 3 deletions

View File

@ -32,11 +32,11 @@ UserEntry = namedtuple('UserEntry', ['id', 'login', 'expiry', 'claims'])
JWT_PRIV_KEY = ""
with open('/opt/app/config/authservice.key', 'r') as f:
JWT_PRIV_KEY = f.readlines()
JWT_PRIV_KEY = f.read().replace('\n','')
JWT_PUB_KEY = ""
with open('/opt/app/config/authservice.pub', 'r') as f:
JWT_PUB_KEY = f.readlines()
JWT_PUB_KEY = f.read().replace('\n','')
def getUserEntryFromDB(application: str, login: str):

View File

@ -3,7 +3,7 @@ Generate the RSA key pair using:
Private key (keep it secret!):
openssl genrsa -out authservice.pem 2048
openssl genrsa -out authservice.key 2048
Extract the public key (publish it):