mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fixing SEC_ERROR_REUSED_ISSUER_AND_SERIAL
This commit is contained in:
parent
aab743b901
commit
7acb044bd8
@ -409,7 +409,7 @@ class Helpers:
|
|||||||
cert.get_subject().O = "Crafty Controller"
|
cert.get_subject().O = "Crafty Controller"
|
||||||
cert.get_subject().OU = "Server Ops"
|
cert.get_subject().OU = "Server Ops"
|
||||||
cert.get_subject().CN = gethostname()
|
cert.get_subject().CN = gethostname()
|
||||||
cert.set_serial_number(1000)
|
cert.set_serial_number(random.randint(1,255))
|
||||||
cert.gmtime_adj_notBefore(0)
|
cert.gmtime_adj_notBefore(0)
|
||||||
cert.gmtime_adj_notAfter(365 * 24 * 60 * 60)
|
cert.gmtime_adj_notAfter(365 * 24 * 60 * 60)
|
||||||
cert.set_issuer(cert.get_subject())
|
cert.set_issuer(cert.get_subject())
|
||||||
|
Loading…
Reference in New Issue
Block a user