]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-118658: Modify cert generation script to extract cert3.pem (GH-124598)...
authorFelix Fontein <felix@fontein.de>
Tue, 8 Oct 2024 11:37:30 +0000 (13:37 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Oct 2024 11:37:30 +0000 (13:37 +0200)
(cherry picked from commit 480354dc236af9ae9d47b2520aa85fb7293c7b68)

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 6626b93976a585c0169b8d513c1a037f81074edd..ed2037c1fdff048860633ba2efd3d62b0e9410c8 100644 (file)
@@ -254,6 +254,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('fakehostname', sign=True)
     with open('keycert4.pem', 'w') as f:
         f.write(key)