ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

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

  • 1 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა ashwini_patange

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)

შერჩეული გადაწყვეტა

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); }