Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 35f4218

Browse files
committed
Added root-ca path to python script
1 parent 9115acd commit 35f4218

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/security/configuration/client-auth.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ headers = {
7878
}
7979
cert_file_path = "/full/path/to/client-cert.pem"
8080
key_file_path = "/full/path/to/client-cert-key.pem"
81+
root_ca_path = "/full/path/to/root-ca.pem"
8182
8283
# Send the request.
8384
path = 'movies/_doc/3'
8485
url = base_url + path
85-
response = requests.get(url, cert = (cert_file_path, key_file_path), verify=False)
86+
response = requests.get(url, cert = (cert_file_path, key_file_path), verify=root_ca_path)
8687
print(response.text)
8788
```
8889

0 commit comments

Comments
 (0)