I want to use phantomjs and nodejs to login in a site using an PFX certificate, is it possible?
- The problem is that the server ask the certificate.pfx before the site loads.
I was able to do it using these commands:
--ssl-client-certificate-file= path to pem file
--ssl-client-key-passphrase= pem file password
--cookies-file= file to store cookies (./cookies.js)
--proxy-type=https (or http)
--ssl-certificates-path= folder to store the site's certificates (./cert)
I wasn't able to use the .pfx file so I generated an .pem file using openssl, more here.
And remember to get the site's certificates and put it in the ssl-certificates-path folder