Skip to content

Commit

Permalink
Update ssl.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored Nov 21, 2024
1 parent 4321f00 commit e49cc07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/ssl.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
When making a request over HTTPS, HTTPX needs to verify the identity of the requested host. To do this, it relies on the [`truststore`](https://truststore.readthedocs.io/en/latest/) package to load the system certificates, ensuring that `httpx` has the same behaviour on SSL sites as your browser.
When making a request over HTTPS, HTTPX needs to verify the identity of the requested host. We rely on the [`truststore`](https://truststore.readthedocs.io/en/latest/) package to load the system certificates, ensuring that `httpx` has the same behaviour on SSL sites as your browser.

### SSL verification

Expand All @@ -9,7 +9,7 @@ By default httpx will verify HTTPS connections, and raise an error for invalid S
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
```

If you're confident that you want to visit a site without using SSL you can disable SSL verification completely...
If you're confident that you want to visit a site with an invalid certificate you can disable SSL verification completely...

```python
>>> httpx.get("https://expired.badssl.com/", verify=False)
Expand Down

0 comments on commit e49cc07

Please sign in to comment.