summaryrefslogtreecommitdiffstats
path: root/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py')
-rw-r--r--cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py b/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py
new file mode 100644
index 0000000..e1fd66f
--- /dev/null
+++ b/cmso-robot/robot/locallibrary/cmsoUtils/RequestsClientCert.py
@@ -0,0 +1,7 @@
+
+class RequestsClientCert:
+ """RequestsClientCert allows adding a client cert to the Requests Robot Library."""
+
+ def add_client_cert(self, session, cert):
+ """Add Client Cert takes in a requests session object and a string path to the cert"""
+ session.cert = cert \ No newline at end of file