From 1c3ac21291cb045a0c90dfaffd253817101c8b83 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Sun, 11 Dec 2016 08:38:59 -0800 Subject: [PATCH] Ensuring the digicert session is handled correctly (#579) --- lemur/plugins/lemur_digicert/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lemur/plugins/lemur_digicert/plugin.py b/lemur/plugins/lemur_digicert/plugin.py index 44d66d35..c08fb7af 100644 --- a/lemur/plugins/lemur_digicert/plugin.py +++ b/lemur/plugins/lemur_digicert/plugin.py @@ -376,6 +376,8 @@ class DigiCertCISIssuerPlugin(IssuerPlugin): # retrieve certificate certificate_pem = get_cis_certificate(self.session, base_url, data['id']) + + self.session.headers.pop('Accept') end_entity = pem.parse(certificate_pem)[0] return "\n".join(str(end_entity).splitlines()), current_app.config.get('DIGICERT_CIS_INTERMEDIATE')