Make hash value understandable for clients

This commit is contained in:
Marvin Martinson 2021-08-23 09:23:07 +00:00
parent 3ea404810e
commit 84adac255b

View File

@ -258,6 +258,7 @@ def certidude_enroll(fork, no_wait, kerberos):
NotImplemented NotImplemented
builder = CSRBuilder({"common_name": common_name}, self_public_key) builder = CSRBuilder({"common_name": common_name}, self_public_key)
builder.hash_algo = bootstrap["certificate"]["hash_algorithm"].replace("-", "").lower() # sha1, sha256 sha512
request = builder.build(private_key) request = builder.build(private_key)
with open(key_partial, "wb") as f: with open(key_partial, "wb") as f:
f.write(asymmetric.dump_private_key(private_key, None)) f.write(asymmetric.dump_private_key(private_key, None))