Keytool , Openssl, SSLPOKE

I was playing keystore and keytool today to add certifcate.

  1. Openssl command to export certifcate from remote url and save to pubcert.crt  : openssl s_client -connect  <domain>:443 -showcerts < /dev/null | sed -ne “/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p” > /tmp/pubcert.crt
  2. keytool -import -trustcacerts -alias <aliasname> -file /tmp/pubcert.crt -keystore test.jks -storepass <passpword> -noprompt
  3. To test the connectvity using SSL poke:  java<path of jks> SSLPoke  <domainname> 443
    Successfully connected

SSL Poke Installation :

Leave a Reply

Your email address will not be published. Required fields are marked *