]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update ssl.md
authorTom Christie <tom@tomchristie.com>
Thu, 21 Nov 2024 13:35:10 +0000 (13:35 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 13:35:10 +0000 (13:35 +0000)
docs/advanced/ssl.md

index 024ef56c21b3f3db3263fc5aa4183958f803127d..c70e05a943fe9c986b5ef84282956213f18ff713 100644 (file)
@@ -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
 
@@ -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)