OpenJDK 11
1. Export certificate from url
firefox - click on HTTPS certificate chain (the lock icon right next to URL address). Click "more info" > "security" > "show certificate" > "details" > "export..". Pickup the name and choose file type example.cer
chrome - click on site icon left to address in address bar, select "Certificate" -> "Details" -> "Export" and save in format "Der-encoded binary, single certificate".
2. Import cer to jdk
./keytool -import -trustcacerts -cacerts -storepass changeit -noprompt -alias file_name -file /path/to/file.pem
No comments:
Post a Comment