selenium-standalone icon indicating copy to clipboard operation
selenium-standalone copied to clipboard

Set trustAllSSLCertificates programmatically

Open basickarl opened this issue 8 years ago • 2 comments

How does one use the programmable API to set the trustAllSSLCertificates property? I'm using a self-signed certificate.

I found the following buy don't know how it works: https://github.com/vvo/selenium-standalone#error-unable-to-get-local-issuer-certificate Is this an environmental variable?

basickarl avatar Apr 16 '18 14:04 basickarl

@basickarl I'm not familiar with that property, can you give an example of how you would use it outside the context of selenium-standalone? Is it something that is passed in as an argument to the selenium.jar process? If so then you can use opts.seleniumArgs https://github.com/vvo/selenium-standalone#seleniumstartopts-cb

The NODE_TLS_REJECT_UNAUTHORIZED is an environment variable, but it is more for the NodeJS process to accept invalid SSL certificates (when downloading drivers), not for the running selenium processes.

stephenash avatar Apr 16 '18 16:04 stephenash

Feel free to reopen if it's still an issue. Thanks!

mgrybyk avatar Oct 09 '20 21:10 mgrybyk