mirror of https://github.com/OpenKMIP/PyKMIP.git
Provision CA extension in CA cert
Without that, on modern OpenSSL libs this gives an error: ``` verify error:num=24:invalid CA certificate ```
This commit is contained in:
parent
54f3688a14
commit
a58a3a3bea
|
@ -31,6 +31,8 @@ def create_self_signed_certificate(subject_name, private_key, days_valid=365):
|
|||
private_key.public_key()
|
||||
).serial_number(
|
||||
x509.random_serial_number()
|
||||
).add_extension(
|
||||
x509.BasicConstraints(ca=True, path_length=None), critical=True
|
||||
).not_valid_before(
|
||||
datetime.datetime.utcnow()
|
||||
).not_valid_after(
|
||||
|
|
Loading…
Reference in New Issue