]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-118658: Modify cert generation script to extract cert3.pem (GH-124598)
authorFelix Fontein <felix@fontein.de>
Fri, 4 Oct 2024 11:15:08 +0000 (13:15 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2024 11:15:08 +0000 (13:15 +0200)
Lib/test/certdata/cert3.pem
Lib/test/certdata/make_ssl_certs.py

index 034bc43ff1974ef86a07827a824123ae566d1908..4ab0f5ff133e3ffd399c8eb5b898a4a5fd46b27e 100644 (file)
@@ -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-----
index 5e626baf550c5b1bfd58d3ad02b13d84976f59fa..48f980124e119814fa4b5c822842cf3dce06d122 100644 (file)
@@ -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)