aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn_auth/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py
index f7e2620..224b681 100644
--- a/gn_auth/__init__.py
+++ b/gn_auth/__init__.py
@@ -65,7 +65,9 @@ def parse_ssl_public_keys(app):
with open(keypath) as _sslkey:
return JsonWebKey.import_key(_sslkey.read())
- key_storage_dir = app.config["CLIENTS_SSL_PUBLIC_KEYS_DIR"]
+ key_storage_dir = Path(app.config["UPLOADS_DIR"]).joinpath(
+ "clients-ssl-keys")
+ app.config["CLIENTS_SSL_PUBLIC_KEYS_DIR"] = key_storage_dir
app.config["SSL_PUBLIC_KEYS"] = {
_key.as_dict()["kid"]: _key for _key in (
__parse_key__(Path(key_storage_dir).joinpath(key))