From 3ef4d96b1c28c5eed55005ba3a4a7cd49625cae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 25 Apr 2017 16:48:04 +0300 Subject: [PATCH] Use application/x-pem-file mimetype for user certs --- certidude/api/request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certidude/api/request.py b/certidude/api/request.py index 14ffc3c..edb6cd9 100644 --- a/certidude/api/request.py +++ b/certidude/api/request.py @@ -51,7 +51,7 @@ class RequestListResource(object): "Common name %s differs from Kerberos credential %s!" % (common_name.value, machine)) # Automatic enroll with Kerberos machine cerdentials - resp.set_header("Content-Type", "application/x-x509-user-cert") + resp.set_header("Content-Type", "application/x-pem-file") cert, resp.body = authority._sign(csr, body, overwrite=True) logger.info(u"Automatically enrolled Kerberos authenticated machine %s from %s", machine, req.context.get("remote_addr")) @@ -110,7 +110,7 @@ class RequestListResource(object): for subnet in config.AUTOSIGN_SUBNETS: if req.context.get("remote_addr") in subnet: try: - resp.set_header("Content-Type", "application/x-x509-user-cert") + resp.set_header("Content-Type", "application/x-pem-file") _, resp.body = authority._sign(csr, body) logger.info("Autosigned %s as %s is whitelisted", common_name.value, req.context.get("remote_addr")) return