From 1a5836c2cebfd8ddaf72656ea46eca9a504b2c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 8 May 2021 11:40:36 +0000 Subject: [PATCH] Allow server to override CN to add DNS suffix and to normalize to lowercase --- pinecrypt/client/cli.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pinecrypt/client/cli.py b/pinecrypt/client/cli.py index 2a1a874..1077116 100644 --- a/pinecrypt/client/cli.py +++ b/pinecrypt/client/cli.py @@ -352,10 +352,6 @@ def certidude_enroll(fork, no_wait, kerberos): except: # TODO: catch correct exceptions raise ValueError("Failed to parse PEM: %s" % submission.text) - assert cert.subject.native["common_name"] == common_name, \ - "Expected certificate with common name %s, but got %s instead" % \ - (common_name, cert.subject.native["common_name"]) - os.umask(0o022) certificate_partial = certificate_path + ".part" with open(certificate_partial, "w") as fh: