[TLSInterception] Fix serial number generation (#892)

* Fix serial number generation

* Fix spellcheck-doc
This commit is contained in:
Abhinav Singh 2021-12-21 18:23:54 +05:30 committed by GitHub
parent 91798fbca3
commit ef730ecdc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -55,6 +55,7 @@ class cached_property:
backports
getter
Arndt
del
"""
def __init__(self, ttl: float = 0):

View File

@ -87,7 +87,7 @@ flags.add_argument(
'--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 @@ class HttpProxyPlugin(HttpProtocolHandlerPlugin):
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):