Skip to content

Commit

Permalink
[3.13] pythongh-118658: Modify cert generation script to extract cert…
Browse files Browse the repository at this point in the history
…3.pem (pythonGH-124598)

(cherry picked from commit 480354d)

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein committed Oct 4, 2024
1 parent ff0ab0e commit 106f476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/certdata/cert3.pem

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Lib/test/certdata/make_ssl_certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ def print_cert(path):
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)
Expand Down

0 comments on commit 106f476

Please sign in to comment.