TritonDataCenter / node-sshpk

Parse, convert, fingerprint and use SSH keys in pure node.js
MIT License
189 stars 50 forks source link

wish: add support for x509 certificates in text form #48

Closed nahuel closed 5 years ago

nahuel commented 6 years ago

Some software like Nginx accepts x509 certificates in text form, like the one you get running openssl x509 -in /etc/ssl/certs/ssl-cert-snakeoil.pem -text. Is simply the same PEM text but prepended by a human readable chunk describing the cert fields. It will be nice to make parseCertificate(...) detect and parse this format by extracting the PEM at the bottom and discarding all the (redundant) info at top, instead of raising CertificateParseError as currently does.