fixed issue with actor certificates creation

This commit is contained in:
Adolfo Gómez García 2020-05-09 08:51:14 +02:00
parent 1e03a5cf6e
commit c69512bf8b

View File

@ -28,7 +28,7 @@ def selfSignedCert(ip: str) -> typing.Tuple[str, str, str]:
cert = (
x509.CertificateBuilder()
.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())
.serial_number(random.SystemRandom().randint(0, 1<<64))
.not_valid_before(now)