P E N C I L
Login
Get certificate
openssl s_client -showcerts -connect myserver:8082
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

This can be import to java with 
keytool -import -file nexus.cer -alias sq_nexus -keystore ${JAVA_HOME}/jre/lib/security/cacerts -storepass changeit