how to add ssl certificate in java

preview_player
Показать описание
How to add ssl certificate in java to remove following exception in java.............

PKIX path building failed:

for this install java 8 (instead of any previous version of java lik 5,6,7..)

download certificate of the server and add this certificate in java

and add these lines of code in your java program

***********************************************************

**************************************************************
Рекомендации по теме
Комментарии
Автор

Thank you so much Satyendra. It was very helpful for me.

anujsinghsomvanshi
Автор

In java 11 (sapmachine jre) the syntax changed slightly according to the manfile:
keytool.exe -importcert -file <path to cer file> -cacerts -alias "<your alias>"

jiracloudtest
Автор

What should I do if I want to remove the added certificate. I have proceeded according to the video, but I would like to delete it now. Can anyone help me with this?

darkknight
Автор

I followed all the steps but it still has the same error

purpleskrim
Автор

Command:
keytool -keystore "C:\Program Files\Java\<YOUR JAVA - import -alias www.ntrorectt.in -file <PATH TO GOOGLE CERTIFICATE>

RaphaTorres
Автор

Not able to send Gmail SMTP on CentOS using Java web application.getting SDL handshshake exception.

karamjitsinghsehdev
Автор

I am getting warning and illegal option.., how to resolve?

monikaselva
Автор

Vijay Singh Yadav zila: Ghazipur, uttar Pradesh. Bahut bahut Dhanyawad apka.

vijaybharat
Автор

Should Google.cer should be in D: drive?

deviprasaddmahale
Автор

I get access denied when I am doing this process can you please help me out for this?

nipunprabhudesai
join shbcf.ru