I have done this succesfull witk package "iaik" http://javadoc.iaik.tugraz.at/iaik_jce/current/index.html
// working iaik convert from DER to ASCII System.out.println(cert.getExtensionValue("1.3.6.1.4.1.15284.10.2.1").toString()); ASN1Object a1 = iaik.asn1.DerCoder.decode(cert.getExtensionValue("1.3.6.1.4.1.15284.10.2.1")); OutputStream f0 = new FileOutputStream("file1.txt"); DerCoder.encodeTo(a1, f0); now i am stuck because i would really like to do this with mozilla package this is my code: ASN1Value a1 = ASN1Util.decode(OCTET_STRING.getTemplate(), cert.getExtensionValue("1.3.6.1.4.1.15284.10.2.1")); is it possible to get this value in human readable form. I know this is a 8 digit int number and it was put there from field IA5String a5 i have also tried to cast values :) but naturally without success IA5String a5 = (IA5String) a1; CharacterString cs = (CharacterString) a5; System.out.println( " ---- "+cs.toCharArray()); Blaz P. _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto