Make hash value understandable for clients
This commit is contained in:
parent
3ea404810e
commit
84adac255b
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user