Debian Codegraph @

dummyserver/certs/README.rst

raw
1 Generating new certificates
2 ---------------------------
3
4 Here's how you can regenerate the certificates::
5
6 import trustme
7
8 ca = trustme.CA()
9 server_cert = ca.issue_cert("localhost")
10
11 ca.cert_pem.write_to_path("cacert.pem")
12 ca.private_key_pem.write_to_path("cacert.key")
13 server_cert.cert_chain_pems[0].write_to_path("server.crt")
14 server_cert.private_key_pem.write_to_path("server.key")
15
16 This will break a number of tests: you will need to update the
17 relevant fingerprints and hashes.