Open Web Browser : ERR_BAD_SSL_CLIENT_AUTH_CERT

208 views
Skip to first unread message

TG

unread,
Feb 27, 2021, 4:41:10 AM2/27/21
to Selenium Users
Hello,

I am using Robot Framework 3.2.1 running on Python 3.8.5 on Chrome.  I am using the Selenium "open web browser" call in a .robot file but I am not able to open the browser because of the ERR_BAD_SSL_CLIENT_AUTH_CERT error.  I've tried several options: 

    Wait Until Keyword Succeeds    2 min        10 sec      open browser    ${url}      ${browser}       options=add_argument("--no-sandbox"); add_argument("--ignore-certificate-errors"); add_argument("--disable-dev-shm-usage"); add_argument("--allow-running-insecure-content"); add_argument("--allow-insecure-localhost"); add_argument("--unsafely-treat-insecure-origin-as-secure"); add_argument("--websecurity=no"); add_argument("--ignore-urlfetcher-cert-requests"); add_argument("ssl-client-certificate-file='path/to/file.crt'"); add_argument("ssl-client-key-file='path/to/key"); add_argument("--ssl-protocol=any"); add_argument("--wedbdriver-loglevel=DEBUG")

I think what I need to do is supply the key and crt files to Chrome, but I'm not sure how to handle that programmatically.  The internal site that I'm visiting requires certs.  I am able to reach the website when I supply the cert, key and ca files using the cert and verify options of requests.get() (using python) so I know the certs work. Can someone point me in the right direction?  Thank you!

Reply all
Reply to author
Forward
0 new messages