How Do I Convert DER Format Certificate X509 Into Human Readable Format?
How can I convert a DER Format certificate x509 into a human readable format in JavaScript?
Solution 1:
Javascript does not provide a method to parse certificate fields. You need to use a library like forge. I think you need something like this
var certAsn1 = forge.asn1.fromDer(certDer)
var cert = forge.pki.certificateFromAsn1(certAsn1);
console.log(cert.serialNumber);
Post a Comment for "How Do I Convert DER Format Certificate X509 Into Human Readable Format?"