Error while accessing https site | Selenium Forum
M
Posted on 12/01/2017
Hi
I am getting below error while accessing https site.
used below code still error persist
FirefoxProfile profile=new FirefoxProfile();
profile.setAcceptUntrustedCertificates(true);




Exception in thread "main" org.openqa.selenium.WebDriverException: Reached error page: about:certerror?e=nssBadCert&u=https%3A//www.makemytrip.com/&c=UTF-
8&f=regular&d=www.makemytrip.com%20uses%20an%20invalid%20security%20certificate.%0A%0A
The%20certificate%20is%20not%20trusted%20because%20the%20issuer%20certificate%20is%20un
known.%0AThe%20server%20might%20not%20be%20sending%20the%20appropriate%20intermedia
te%20certificates.%0AAn%20additional%20root%20certificate%20may%20need%20to%20be%20imp
orted.%0A%0AError%20code%3A%20%3Ca%20id%3D%22errorCode%22%20title%3D%22SEC_ERR
OR_UNKNOWN_ISSUER%22%3ESEC_ERROR_UNKNOWN_ISSUER%3C/a%3E%0A
Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700'
System info: host: 'PHXC02J05430605', ip: '10.91.63.51', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver


=================
I ha

M
Replied on 12/01/2017

send a screen shot of error.


M
Replied on 13/01/2017

PFA error screenshots .


M
Replied on 13/01/2017

try running your program without firefox profile. there is no need of certificate on makemytrip.


M
Replied on 13/01/2017

I have tried without firefox profile but still error persist .. Same code working on my personal laptop .
Issue with only office laptop...


M
Replied on 14/01/2017

seems to me some security apparatus is giving you this error. it is not the problem with selenium.

it is the problem with office laptop. you should talk to your superior about this.


M
Replied on 14/01/2017

Thank you !!