From 7acb044bd8e928c44c53cbc95e2f865bd3ad2ed9 Mon Sep 17 00:00:00 2001 From: MCgamin1738 <5355146-adamreynolds152@users.noreply.gitlab.com> Date: Fri, 11 Dec 2020 19:08:09 +0000 Subject: [PATCH] Fixing SEC_ERROR_REUSED_ISSUER_AND_SERIAL --- app/classes/shared/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 5a276254..b7c91982 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -409,7 +409,7 @@ class Helpers: cert.get_subject().O = "Crafty Controller" cert.get_subject().OU = "Server Ops" 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_notAfter(365 * 24 * 60 * 60) cert.set_issuer(cert.get_subject())