Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SSL Certificate Verification details #9477

Merged
merged 13 commits into from
Feb 27, 2021
8 changes: 6 additions & 2 deletions docs/html/reference/pip_install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,12 @@ See the :ref:`pip install Examples<pip install Examples>`.
SSL Certificate Verification
----------------------------

Starting with v1.3, pip provides SSL certificate verification over https, to
prevent man-in-the-middle attacks against PyPI downloads.
Starting with v1.3, pip provides SSL certificate verification over HTTP, to
prevent man-in-the-middle attacks against PyPI downloads. This does not use
the system certificate store but instead uses a bundled CA certificate
store. The default bundled CA certificate store certificate store may be
overridden by using ``--cert`` option or by using ``PIP_CERT``,
``REQUESTS_CA_BUNDLE``, or ``CURL_CA_BUNDLE`` environment variables.


.. _`Caching`:
Expand Down
1 change: 1 addition & 0 deletions news/6720.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve SSL Certificate Verification docs and ``--cert`` help text.
7 changes: 6 additions & 1 deletion src/pip/_internal/cli/cmdoptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ def exists_action():
dest="cert",
type="path",
metavar="path",
help="Path to alternate CA bundle.",
help=(
"Path to PEM-encoded CA certificate bundle. "
"If provided, overrides the default. "
"See 'SSL Certificate Verification' in pip documentation "
"for more information."
),
) # type: Callable[..., Option]

client_cert = partial(
Expand Down