Skip to content

Commit 7c72cae

Browse files
committed
docs: We're not using aiohttp, not requests
1 parent 0045b23 commit 7c72cae

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

docs/ssl-tutorial.rst

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,16 @@ To point vdirsyncer to a custom set of root CAs::
4040
...
4141
verify = "/path/to/cert.pem"
4242

43-
Vdirsyncer uses the requests_ library, which, by default, `uses its own set of
44-
trusted CAs
45-
<http://www.python-requests.org/en/latest/user/advanced/#ca-certificates>`_.
46-
47-
However, the actual behavior depends on how you have installed it. Many Linux
48-
distributions patch their ``python-requests`` package to use the system
49-
certificate CAs. Normally these two stores are similar enough for you to not
50-
care.
51-
52-
But there are cases where certificate validation fails even though you can
53-
access the server fine through e.g. your browser. This usually indicates that
54-
your installation of the ``requests`` library is somehow broken. In such cases,
55-
it makes sense to explicitly set ``verify`` or ``verify_fingerprint`` as shown
56-
above.
57-
58-
.. _requests: http://www.python-requests.org/
43+
Vdirsyncer uses the aiohttp_ library, which uses the default `ssl.SSLContext
44+
https://docs.python.org/3/library/ssl.html#ssl.SSLContext`_ by default.
45+
46+
There are cases where certificate validation fails even though you can access
47+
the server fine through e.g. your browser. This usually indicates that your
48+
installation of ``python`` or the ``aiohttp`` or library is somehow broken. In
49+
such cases, it makes sense to explicitly set ``verify`` or
50+
``verify_fingerprint`` as shown above.
51+
52+
.. _aiohttp: https://docs.aiohttp.org/en/stable/index.html
5953

6054
.. _ssl-client-certs:
6155

0 commit comments

Comments
 (0)