1

Is it possible to start a selenium PhantomJS session with a specific certificate?
Right now if I run it with PhantomJS I get Missing certficate. Adding --ignore-ssl-errors is not an option, this site needs the certificate.

I can use Chrome or Firefox and install the certificate first and then call webdriver.Chrome() and it will work, but is it possible to do this with PhantomJS?

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Chrispresso
  • 3,660
  • 2
  • 19
  • 31

1 Answers1

0

I assume that you mean the use of client certificates, not the specification of other trusted CAs for validation of the servers certificate. Client certificates are not implemented (see what is the correct way to feed an ssl certificate into phantomjs) while different trusted CA can be specified with the --ssl-certificates-path option.

Community
  • 1
  • 1
Steffen Ullrich
  • 114,247
  • 10
  • 131
  • 172