forked from shaba/openuds
fixed issue with actor certificates creation
This commit is contained in:
parent
1e03a5cf6e
commit
c69512bf8b
@ -28,7 +28,7 @@ def selfSignedCert(ip: str) -> typing.Tuple[str, str, str]:
|
|||||||
cert = (
|
cert = (
|
||||||
x509.CertificateBuilder()
|
x509.CertificateBuilder()
|
||||||
.subject_name(name)
|
.subject_name(name)
|
||||||
.issuer_name(name) # self signed
|
.issuer_name(name) # self signed, its Issuer DN must match its Subject DN.
|
||||||
.public_key(key.public_key())
|
.public_key(key.public_key())
|
||||||
.serial_number(random.SystemRandom().randint(0, 1<<64))
|
.serial_number(random.SystemRandom().randint(0, 1<<64))
|
||||||
.not_valid_before(now)
|
.not_valid_before(now)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user