3 Commits
0.1.0 ... 0.1.3

Author SHA1 Message Date
ef0793be4e pubkey stuff 2021-05-06 16:52:16 +02:00
3f2442e259 pubkey stuff 2021-05-06 16:50:17 +02:00
78439a7ed8 pubkey stuff 2021-05-06 16:46:19 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -32,11 +32,13 @@ 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()
print("DEBUG PRIVKEY: {}".format(JWT_PRIV_KEY))
JWT_PUB_KEY = ""
with open('/opt/app/config/authservice.pub', 'r') as f:
JWT_PUB_KEY = f.readlines()
JWT_PUB_KEY = f.read()
print("DEBUG PUBKEY: {}".format(JWT_PUB_KEY))
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):