Skip to content

Commit 8621bb6

Browse files
feat: example to disable cert verification
1 parent 2f8ebf9 commit 8621bb6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""Example to demonstrate disabling TLS/SSL certificate verification for connections"""
2+
3+
from nisystemlink.clients.core import HttpConfigurationManager
4+
from nisystemlink.clients.file import FileClient
5+
6+
# explicitly get the http config and set the verify option
7+
http_config = HttpConfigurationManager.get_configuration()
8+
http_config.verify = False
9+
10+
client = FileClient(configuration=http_config)
11+
print(client.api_info())

0 commit comments

Comments
 (0)