Ensuring the digicert session is handled correctly (#579)

This commit is contained in:
kevgliss 2016-12-11 08:38:59 -08:00 committed by GitHub
parent 25faf05807
commit 1c3ac21291
1 changed files with 2 additions and 0 deletions

View File

@ -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')