P E N C I L
Login
Certificate


  1. PEM:
    1. Contains only public certificate
    2. Format
      -----BEGIN CERTIFICATE-----
       (Your Primary SSL certificate: your_domain_name.crt)
       -----END CERTIFICATE-----
       -----BEGIN CERTIFICATE-----
       (Your Intermediate certificate: DigiCertCA.crt)
       -----END CERTIFICATE-----
       -----BEGIN CERTIFICATE-----
       (Your Root certificate: TrustedRoot.crt)
       -----END CERTIFICATE-----
    3. How to save with chrome for PEM: export Base 64-encoded Ascii (single / chain)
  2. Import certificate to java
    1. Check that keytool is the keytool in your java (not sure that it's necessary)
    2. keytool -importcert -v -trustcacerts -file nexus.pem -alias nexus_cert
      >> Storing /home/hly/.keystore
    3. keytool -importkeystore -srckeystore ~/.keystore -destkeystore $JAVA_HOME/jre/lib/security/cacerts
  3. https://www.sslshopper.com/article-most-common-openssl-commands.html