
Post navigation ← React router dom direct URL or refresh results in 404 Change the colour of the status bar on Android (in Xamarin Forms) → This entry was posted in Java on Septemby purpleblob. That’s it – the certificate should now be available to Java.
Type yes when prompted if you want to proceed. You’ll be asked for a password, the default is changeit obviously if this has been changed then use that. Replace the first occurence of mycert with a unique name (key) for your certificate and then obviously the mycert.cer is replaced with the name of the certificate file you saved. Keytool -import -alias mycert -keystore "C:\Program Files\Java\jdk1.8.0_101\jre\lib\security\cacerts" -file mycert.cer Go to the location of the JDK/JRE you’re using, for example C:\Program Files\Java\jdk1.8.0_101\jre\lib\security. Let’s assume we saved the file as mycert.cer, now we need to import this into the cacert using the keytool… and save the exported cert to your hard drive
Click Next until you see the format selector, I used DER format.
Use the dev tools (ctrl+shift+i) and select the Security tab.Open the HTTPS repository in Chrome (or preferred web browser).Note: Instructions are on Windows using Chrome, but should be similar in different browsers. I’m back on some Java coding after a fair time away and was getting the old PKIX path building failed: .SunCertPathBuilderException error.īasically Java is complaining that it didn’t recognise the HTTPS SSL certificate of the maven repository (in this case one hosted in Artifactory).