Import Certificates HTTPS to JVM - Almax84/consulting-wiki GitHub Wiki

PER VISUALIZZARE IL CERTIFICATO

openssl s_client -connect api.lab01.gpslab.club:6443 2>/dev/null </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p

PER ESPORTARLO IN DER

openssl s_client -showcerts -connect api.lab01.gpslab.club:6443 < /dev/null | openssl x509 -outform DER > derp.der

PER IMPORTARTLO
sudo keytool -import -alias ocplab011 -keystore /usr/lib/jvm/java-11-openjdk-11.0.15.0.10-1.fc35.x86_64/lib/security/cacerts -file ./derp.der