Skip to content
Myr

Update link to trustme (#2318)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ofek Lev · committed by GitHub · parent 3a82176 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/advanced.md+1 added-1 removed
1062 unmodified lines
1063When making requests to local servers, such as a development server running on `localhost`, you will typically be using unencrypted HTTP connections.10641065If you do need to make HTTPS connections to a local server, for example to test an HTTPS-only service, you will need to create and use your own certificates. Here's one way to do it:106610671. Use [trustme-cli](https://github.com/sethmlarson/trustme-cli/) to generate a pair of server key/cert files, and a client cert file.10671. Use [trustme](https://github.com/python-trio/trustme) to generate a pair of server key/cert files, and a client cert file.10681. Pass the server key/cert files when starting your local server. (This depends on the particular web server you're using. For example, [Uvicorn](https://www.uvicorn.org) provides the `--ssl-keyfile` and `--ssl-certfile` options.)10691. Tell HTTPX to use the certificates stored in `client.pem`:10701071```pycon
188 unmodified lines