List of utility methods to do Certificate Read
byte[] | readCertifacates() read Certifacates CertificateFactory factory = CertificateFactory.getInstance("X.509"); InputStream in = new FileInputStream("C:/Users/Administrator/https.crt"); java.security.cert.Certificate cate = factory.generateCertificate(in); return cate.getEncoded(); |