diff options
author | Felix Fontein <felix@fontein.de> | 2024-10-04 11:15:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 11:15:08 (GMT) |
commit | 480354dc236af9ae9d47b2520aa85fb7293c7b68 (patch) | |
tree | 98451649c00c4fc93675c03dc70eb6fd8a7b8246 | |
parent | ddccd546a00fa7c2e4140cae25284b902292ad3b (diff) | |
download | cpython-480354dc236af9ae9d47b2520aa85fb7293c7b68.zip cpython-480354dc236af9ae9d47b2520aa85fb7293c7b68.tar.gz cpython-480354dc236af9ae9d47b2520aa85fb7293c7b68.tar.bz2 |
gh-118658: Modify cert generation script to extract cert3.pem (GH-124598)
-rw-r--r-- | Lib/test/certdata/cert3.pem | 2 | ||||
-rw-r--r-- | Lib/test/certdata/make_ssl_certs.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/certdata/cert3.pem b/Lib/test/certdata/cert3.pem index 034bc43..4ab0f5f 100644 --- a/Lib/test/certdata/cert3.pem +++ b/Lib/test/certdata/cert3.pem @@ -31,4 +31,4 @@ zqmtEM65ceSP8lo8Zbrcy+AEkCulFaZ92tyjtbe8oN4wTmTLFw06oFLSZzuiOgDV OaphdVKf/pvA6KBpr6izox0KQFIE5z3AAJZfKzMGDDD20xhy7jjQZNMAhjfsT+k4 SeYB/6KafNxq08uoulj7w4Z4R/EGpkXnU96ZHYHmvGN0RnxwI1cpYHCazG8AjsK/ anN9brBi5twTGrn+D8LRBqF5Yn+2MKkD0EdXJdtIENHP+32sPQ== ------END CERTIFICATE-----
\ No newline at end of file +-----END CERTIFICATE----- diff --git a/Lib/test/certdata/make_ssl_certs.py b/Lib/test/certdata/make_ssl_certs.py index 5e626ba..48f9801 100644 --- a/Lib/test/certdata/make_ssl_certs.py +++ b/Lib/test/certdata/make_ssl_certs.py @@ -266,6 +266,8 @@ if __name__ == '__main__': f.write(key) f.write(cert) + check_call(['openssl', 'x509', '-outform', 'pem', '-in', 'keycert3.pem', '-out', 'cert3.pem']) + cert, key = make_cert_key(cmdlineargs, 'fakehostname', sign=True) with open('keycert4.pem', 'w') as f: f.write(key) |