How to bypass SSL Certification check in a robot API Test?

1,944 views
Skip to first unread message

ashish shukla

unread,
Sep 8, 2021, 3:31:15 PM9/8/21
to robotframework-users
Getting this error :

Unverified HTTPS request is being made to host
I need to disable SSL certifcates in robot, Can you tell me how to do that with POST call?




Craig Despeaux

unread,
Sep 8, 2021, 9:13:57 PM9/8/21
to robotframework-users
What library are you using?  If you're using the REST library, add ssl_verify=false in the Library definition, like so:

Library  REST  https://whatever.com. ssl_verify=false

If you're using the robot framework requests library, it should work with HTTPS , but you can add disable_warnings=1 on the Create Session keyword to eliminate the warning message you would see on each HTTP request.

Craig

Reply all
Reply to author
Forward
0 new messages