File: README.rst

package info (click to toggle)
python-urllib3 1.26.5-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,260 kB
  • sloc: python: 16,933; makefile: 130
file content (17 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Generating new certificates
---------------------------

Here's how you can regenerate the certificates::

    import trustme

    ca = trustme.CA()
    server_cert = ca.issue_cert(u"localhost")

    ca.cert_pem.write_to_path("cacert.pem")
    ca.private_key_pem.write_to_path("cacert.key")
    server_cert.cert_chain_pems[0].write_to_path("server.crt")
    server_cert.private_key_pem.write_to_path("server.key")

This will break a number of tests: you will need to update the
relevant fingerprints and hashes.