From 5bdf986b47dc91ee01adc57d416001b3953ca90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 29 Mar 2016 23:39:19 +0300 Subject: [PATCH] cli: Send Accept: application/x-pem-file while downloading CRL --- certidude/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certidude/helpers.py b/certidude/helpers.py index ac00b16..31d1bed 100644 --- a/certidude/helpers.py +++ b/certidude/helpers.py @@ -46,7 +46,7 @@ def certidude_request_certificate(server, key_path, request_path, certificate_pa os.rename(authority_partial, authority_path) # Fetch certificate revocation list - r = requests.get(revoked_url, stream=True) + r = requests.get(revoked_url, headers={'accept': 'application/x-pem-file'}, stream=True) click.echo("Fetching CRL from %s to %s" % (revoked_url, revocations_path)) revocations_partial = tempfile.mktemp(prefix=revocations_path + ".part") with open(revocations_partial, 'wb') as f: