title: NodeJS: Validate certificate in DER format
body: <p>I'm using <code>crypto</code> module to validate a certificate, but both, my certificate and my public key are in <strong>DER</strong> format. It seems that <code>crypto</code> module does not accept this format.</p>
  
  <p>Is there a way (or module) to convert DER to PEM format using NodeJS? I couldn't find any and cannot use command line to call <em>openssl</em> via shell.</p>
  
  <p><strong>UPDATE:</strong> It's not about HTTPS certificates. It's about general X.509 certificates. And if you mark the question as negative, please leave a comment to justify it. Don't be a stupid if you are not able to help.</p>