From 1ed6ae539deea5e6d3513c30d982c52f5d6207db Mon Sep 17 00:00:00 2001 From: Hossein Shafagh Date: Wed, 15 Jan 2020 16:19:48 -0800 Subject: [PATCH] # possibility to default to a SIGNING_ALGORITHM for a given profile --- lemur/plugins/lemur_digicert/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/plugins/lemur_digicert/plugin.py b/lemur/plugins/lemur_digicert/plugin.py index 5f52611f..88ea5b6b 100644 --- a/lemur/plugins/lemur_digicert/plugin.py +++ b/lemur/plugins/lemur_digicert/plugin.py @@ -171,6 +171,9 @@ def map_cis_fields(options, csr): "units": [options["organizational_unit"]], }, } + # possibility to default to a SIGNING_ALGORITHM for a given profile + if current_app.config.get("DIGICERT_CIS_SIGNING_ALGORITHMS", {}).get(options['authority'].name): + data["signature_hash"] = current_app.config.get("DIGICERT_CIS_SIGNING_ALGORITHMS", {}).get(options['authority'].name) return data