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:
parent
af4d50db17
commit
6977d7148e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user