public static void main(String[] args) {
try {
SSLContext ssl = new SSLContext();
// Now read the certificate
DERInputStream der = new DERInputStream(new FileInputStream("c:/exported.cer")); //$NON-NLS-1$
ASN1Sequence certificate = (ASN1Sequence) der.readObject();
// Get the x509 certificate structure
X509Certificate x509 = new X509Certificate(X509CertificateStructure.getInstance(certificate));
System.out.println(x509.getIssuerDN());