4 Commits
0.1.0 ... 0.1.4

Author SHA1 Message Date
f56db65012 pubkey stuff, remove debug 2021-05-06 16:55:39 +02:00
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 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()
JWT_PUB_KEY = ""
with open('/opt/app/config/authservice.pub', 'r') as f:
JWT_PUB_KEY = f.readlines()
JWT_PUB_KEY = f.read()
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):