Skip to content

Commit

Permalink
pythongh-118658: Modify cert generation script to extract cert3.pem (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Oct 4, 2024
1 parent ddccd54 commit 480354d
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 @@ -266,6 +266,8 @@ def write_cert_reference(path):
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)
Expand Down

0 comments on commit 480354d

Please sign in to comment.