From 6977d7148e5cf8a6edeaec41e14a41efadee33bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 23 Dec 2015 16:10:00 +0200 Subject: [PATCH] cli: Send Accept header when requesting signed certificate --- certidude/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/certidude/helpers.py b/certidude/helpers.py index f8f159c..fce6ec5 100644 --- a/certidude/helpers.py +++ b/certidude/helpers.py @@ -122,6 +122,7 @@ def certidude_request_certificate(url, key_path, request_path, certificate_path, submission = urllib.request.Request(request_url, buf) submission.add_header("User-Agent", "Certidude") submission.add_header("Content-Type", "application/pkcs10") + submission.add_header("Accept", "application/x-x509-user-cert") click.echo("Submitting to %s, waiting for response..." % request_url) try: