Skip to content

Commit ef730ec

Browse files
authored
[TLSInterception] Fix serial number generation (#892)
* Fix serial number generation * Fix spellcheck-doc
1 parent 91798fb commit ef730ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

proxy/common/backports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def randint(self):
5555
backports
5656
getter
5757
Arndt
58+
del
5859
"""
5960

6061
def __init__(self, ttl: float = 0):

proxy/http/proxy/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
'--ca-cert-dir',
8888
type=str,
8989
default=DEFAULT_CA_CERT_DIR,
90-
help='Default: ~/.proxy.py. Directory to store dynamically generated certificates. '
90+
help='Default: ~/.proxy/certificates. Directory to store dynamically generated certificates. '
9191
'Also see --ca-key-file, --ca-cert-file and --ca-signing-key-file',
9292
)
9393

@@ -730,7 +730,7 @@ def gen_ca_signed_certificate(
730730
ca_key_path = self.flags.ca_key_file
731731
ca_key_password = ''
732732
ca_crt_path = self.flags.ca_cert_file
733-
serial = self.uid
733+
serial = '%d%d' % (time.time(), os.getpid())
734734

735735
# Sign generated CSR
736736
if not os.path.isfile(cert_file_path):

0 commit comments

Comments
 (0)