how can I load invalid certification web page using JavaFX.

General Tech QA/Testing 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on QA/Testing related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Hi I am trying to load web page in webView pannel in JAVAFX. I am able to load the web page whose certification is valid like google,yahoo. But unable to load invalid certification Sites.

Please suggest how can I add certification to my Web Site.

Thanks.

profilepic.png
manpreet 2 years ago

This is because the certificate cannot be found in default java certificates store.

Try to create java truststore with the root certificate from the "invalid certification sites". Command similar to this:

keytool -importcert -trustcacerts -alias somealias -file certificate.crt -deststorepass somePassword -destkeystore truststore.jks

Then start your java program with VM options:

-Djavax.net.ssl.trustStore="pathto\truststore.jks" -Djavax.net.ssl.trustStorePassword="somePassword" -Djavax.net.debug=all

Additional option -Djavax.net.debug=all allows you to debug the ssl handshake and see potential errors with certificates.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.