Skip to content

Commit

Permalink
Ensuring the digicert session is handled correctly (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgliss committed Dec 11, 2016
1 parent 25faf05 commit 1c3ac21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lemur/plugins/lemur_digicert/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ def create_certificate(self, csr, issuer_options):

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

Expand Down

0 comments on commit 1c3ac21

Please sign in to comment.