Posts

Showing posts from July, 2017

Featured Post

certificate permenant import to jre cacert

Friends ,      I have tried importing certificates form the hosts directly to the jre/cacerts .   here are the steps which I followed  InstallCert ------------ Courtesy: https://github.com/escline/InstallCert/blob/master/InstallCert.java import javax.net.ssl.* ; import java.io.* ; import java.security.KeyStore ; import java.security.MessageDigest ; import java.security.cert.CertificateException ; import java.security.cert.X509Certificate ; /* * * Class used to add the server's certificate to the KeyStore * with your trusted certificates. */ public class InstallCert { public static void main ( String [] args ) throws Exception { String host; int port; char [] passphrase; if ((args . length == 1 ) || (args . length == 2 )) { String [] c = args[ 0 ] . split( " : " ); host = c[ 0 ]; port = (c . length == 1 ) ? 443 :...