Handling SecurityCertificateError exception in JAVA by adding security certificate using Keytools
To add the security certificate for https URL the following steps needs to be followed
- Take a backup of cacerts file in the following directory (This can be your default JRE directory also) C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\security\
- Save the security certificate in some location for ex c:\certificate.cer
- Go to Run type cmd
- Execute CD C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\bin (This is the location of the JRE WebSphere uses, in other environments please navigate to the JRE BIN the application uses)
- Then execute the following command
Command
keytool -keystore "C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre \lib\security\cacerts" -import -file c:\certificate.cer -alias https://your-url.net
- It will ask for a password , enter changeit
- The security certificate will be added for the JRE
Now you can access the URL or access the webservice in the URL.
6 comments:
muwmuxfpykpviqxatzlpx. acne treatment
hqzfuw
We provide state of the art technology in Robotics and Artificial Intelligence to
meet business and domestic purposes. Our recent development of SRISHTI, an Autonomous
Cleaning and Surveillance Robot for the purpose of cleaning and surveillance has been a breakthrough in the automation industry. To know more about the success and implementation, please visit us from the given links.
This is such an excellent blog. I visited robot Wars live show New Technology in London it was an awesome trip for me we spent marvelous time and we hit our steal robots so many times while playing games.D it was much much blast
It is one of excellent blog, This is include lot information about robotics this is mainly used for robotic liker, job seeker and students really this is good.
Thank You.
This device has some strict limits, but is less cool and careful working in social engineering situations.
It was a very useful Information.Thanks for sharing.
Robotics Training in Noida
Post a Comment