본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

getting error "This Connection is Untrusted" after accessing the protected page when I run code of x509 cert automation using java,how can automate it

more options

I have automated feature of x509 authentication, in that I have imported my cert file in firefox using java. After accessing the protected page, I get this error "This Connection is Untrusted". By clicking on "I understand the risk" and by confirming the certificate MANUALLY, I am able to proceed, however I want to automate this part(i.e. clicking on "I understand the risk" and confirming the cert) Is there any way to bypass this error and directly display the imported certificates using java?

I have automated feature of x509 authentication, in that I have imported my cert file in firefox using java. After accessing the protected page, I get this error "This Connection is Untrusted". By clicking on "I understand the risk" and by confirming the certificate MANUALLY, I am able to proceed, however I want to automate this part(i.e. clicking on "I understand the risk" and confirming the cert) Is there any way to bypass this error and directly display the imported certificates using java?

선택된 해결법

Hi Team, it worked with following code... thanks... please close the discussion.

File file = new File(firefoxProfileDir); FirefoxProfile profile = new FirefoxProfile(file); profile.setAcceptUntrustedCertificates(true);

WebDriver driver; if (!FIREFOX_PATH.equals("")) {

File binaryFile = new File(FIREFOX_PATH); FirefoxBinary firefoxBinary = new FirefoxBinary(binaryFile); driver = new FirefoxDriver(firefoxBinary, profile); } else { driver = new FirefoxDriver(profile); }

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (1)

more options

선택된 해결법

Hi Team, it worked with following code... thanks... please close the discussion.

File file = new File(firefoxProfileDir); FirefoxProfile profile = new FirefoxProfile(file); profile.setAcceptUntrustedCertificates(true);

WebDriver driver; if (!FIREFOX_PATH.equals("")) {

File binaryFile = new File(FIREFOX_PATH); FirefoxBinary firefoxBinary = new FirefoxBinary(binaryFile); driver = new FirefoxDriver(firefoxBinary, profile); } else { driver = new FirefoxDriver(profile); }