1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

cli: Send Accept header when requesting signed certificate

This commit is contained in:
Lauri Võsandi 2015-12-23 16:10:00 +02:00
parent af4d50db17
commit 6977d7148e

View File

@ -122,6 +122,7 @@ def certidude_request_certificate(url, key_path, request_path, certificate_path,
submission = urllib.request.Request(request_url, buf) submission = urllib.request.Request(request_url, buf)
submission.add_header("User-Agent", "Certidude") submission.add_header("User-Agent", "Certidude")
submission.add_header("Content-Type", "application/pkcs10") 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) click.echo("Submitting to %s, waiting for response..." % request_url)
try: try: