From 26248a4ea56d8458a16962fdeee501e98da95605 Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Wed, 19 Mar 2025 21:01:58 +0100 Subject: [PATCH] fixed tests --- test/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/main.py b/test/main.py index 9e4de54..653548f 100644 --- a/test/main.py +++ b/test/main.py @@ -25,8 +25,8 @@ ORIGIN_REF, ALLOTMENT_REF, SECRET = str(uuid4()), '20000000-0000-0000-0000-00000 # INSTANCE_KEY_RSA = generate_key() # INSTANCE_KEY_PUB = INSTANCE_KEY_RSA.public_key() -INSTANCE_KEY_RSA = PrivateKey(str(join(dirname(__file__), '../app/cert/instance.private.pem'))) -INSTANCE_KEY_PUB = PublicKey(str(join(dirname(__file__), '../app/cert/instance.public.pem'))) +INSTANCE_KEY_RSA = PrivateKey.from_file(str(join(dirname(__file__), '../app/cert/instance.private.pem'))) +INSTANCE_KEY_PUB = PublicKey.from_file(str(join(dirname(__file__), '../app/cert/instance.public.pem'))) jwt_encode_key = jwk.construct(INSTANCE_KEY_RSA.pem(), algorithm=ALGORITHMS.RS256) jwt_decode_key = jwk.construct(INSTANCE_KEY_PUB.pem(), algorithm=ALGORITHMS.RS256)