Browse Source

Allow server to override CN to add DNS suffix and to normalize to lowercase

master
Lauri Võsandi 1 year ago
parent
commit
1a5836c2ce
  1. 4
      pinecrypt/client/cli.py

4
pinecrypt/client/cli.py

@ -352,10 +352,6 @@ def certidude_enroll(fork, no_wait, kerberos): @@ -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:

Loading…
Cancel
Save