From 37e8d5d2f0c07c797e347a7bc1441882fe118ecd Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Tue, 25 Feb 2020 23:15:33 +0100 Subject: [PATCH 1/2] docs: add reference for REQUESTS_CA_BUNDLE --- docs/api-usage.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/api-usage.rst b/docs/api-usage.rst index e23cd1d77..df8b27cb9 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -309,6 +309,18 @@ python-gitlab: Reference: http://docs.python-requests.org/en/master/user/advanced/#proxies +SSL certificate verification +---------------------------- + +python-gitlab relies on the CA certificate bundle in the `certifi` package +that comes with the requests library. + +If you need python-gitlab to use your system CA store instead, you can provide +the path to the CA bundle in the `REQUESTS_CA_BUNDLE` environment variable. + +Reference: +https://2.python-requests.org/en/master/user/advanced/#ssl-cert-verification + Client side certificate ----------------------- From b392c21c669ae545a6a7492044479a401c0bcfb3 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Tue, 25 Feb 2020 23:20:00 +0100 Subject: [PATCH 2/2] chore: fix broken requests links Another case of the double slash rewrite. --- README.rst | 2 +- docs/api-usage.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 3802bcbc1..c00e0c68f 100644 --- a/README.rst +++ b/README.rst @@ -31,7 +31,7 @@ Requirements python-gitlab depends on: -* `python-requests `_ +* `python-requests `_ Install with pip ---------------- diff --git a/docs/api-usage.rst b/docs/api-usage.rst index df8b27cb9..dac3997f3 100644 --- a/docs/api-usage.rst +++ b/docs/api-usage.rst @@ -307,7 +307,7 @@ python-gitlab: gl = gitlab.gitlab(url, token, api_version=4, session=session) Reference: -http://docs.python-requests.org/en/master/user/advanced/#proxies +https://2.python-requests.org/en/master/user/advanced/#proxies SSL certificate verification ---------------------------- @@ -336,7 +336,7 @@ The following sample illustrates how to use a client-side certificate: gl = gitlab.gitlab(url, token, api_version=4, session=session) Reference: -http://docs.python-requests.org/en/master/user/advanced/#client-side-certificates +https://2.python-requests.org/en/master/user/advanced/#client-side-certificates Rate limits -----------