ashtuchkin / u2f

U2F Authentication for Node.js
399 stars 47 forks source link

x509 Certificate Parser is helpful #10

Open kvnn opened 6 years ago

kvnn commented 6 years ago

Using node-x509 [1] and your convertCertToPEM function I'm able to get data from the result.certificate buffer, which I was having some trouble with.

Here is an example: if (result.successful) { console.log('certificate', x509.getIssuer(convertCertToPEM(result.certificate)));

Would you like me to add this to the README?

[1] https://github.com/Southern/node-x509

kvnn commented 6 years ago

Also - it'd be nice to make convertCertToPEM public for this usage.