From 19e6881150bdd36b9b8c8008f53ee109420ed13a Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Tue, 21 Dec 2021 17:57:21 +0530 Subject: [PATCH 1/2] Fix serial number generation --- proxy/http/proxy/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/http/proxy/server.py b/proxy/http/proxy/server.py index 9b805a2813..0a54c4d5f7 100644 --- a/proxy/http/proxy/server.py +++ b/proxy/http/proxy/server.py @@ -87,7 +87,7 @@ '--ca-cert-dir', type=str, default=DEFAULT_CA_CERT_DIR, - help='Default: ~/.proxy.py. Directory to store dynamically generated certificates. ' + help='Default: ~/.proxy/certificates. Directory to store dynamically generated certificates. ' 'Also see --ca-key-file, --ca-cert-file and --ca-signing-key-file', ) @@ -730,7 +730,7 @@ def gen_ca_signed_certificate( ca_key_path = self.flags.ca_key_file ca_key_password = '' ca_crt_path = self.flags.ca_cert_file - serial = self.uid + serial = '%d%d' % (time.time(), os.getpid()) # Sign generated CSR if not os.path.isfile(cert_file_path): From 453736c9bbac1f6ca3ddc6e8d6dcb012fa3ffe34 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Tue, 21 Dec 2021 18:11:36 +0530 Subject: [PATCH 2/2] Fix spellcheck-doc --- proxy/common/backports.py | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/common/backports.py b/proxy/common/backports.py index 9aec16df4c..c2533fe020 100644 --- a/proxy/common/backports.py +++ b/proxy/common/backports.py @@ -55,6 +55,7 @@ def randint(self): backports getter Arndt + del """ def __init__(self, ttl: float = 0):