From efea75b09d6c3d23989fe9ae72fc45bc935e26e8 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Sat, 20 Apr 2024 21:15:37 +0300 Subject: Client needs access to PRIVATE KEY, not PUBLIC KEY. --- gn2/wqflask/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gn2/wqflask/__init__.py b/gn2/wqflask/__init__.py index 40953522..6b6c48ac 100644 --- a/gn2/wqflask/__init__.py +++ b/gn2/wqflask/__init__.py @@ -108,8 +108,8 @@ except StartupError as serr: server_session = Session(app) -with open(app.config["SSL_KEY_PAIR_PUBLIC_KEY"]) as _sslkey: - app.config["JWT_PUBLIC_KEY"] = JsonWebKey.import_key(_sslkey.read()) +with open(app.config["SSL_KEY_PAIR_PRIVATE_KEY"]) as _sslkey: + app.config["JWT_PRIVATE_KEY"] = JsonWebKey.import_key(_sslkey.read()) @app.before_request def before_request(): -- cgit v1.2.3