title: jsrsasign - how to extract an x.509 certificate's fingerprint?
body: <p>Is it possible to use jsrsasign to extract the fingerprint of an x.509 certficate, similar to what can be achieved using this openssl command:</p>
  
  <p><code>openssl x509 -sha1 -in cert.pem -noout -fingerprint</code> - Ref: <a href="http://www.openssl.org/docs/apps/x509.html" rel="nofollow">openssl x.509 doc</a></p>
  
  <p>I'm reading my X509 like so:</p>
  
  <p><code>var c = new X509();
  c.readCertPEM(cert);
  \\ how to get the fingerprint?
  </code></p>
  
  <p>Ref: <a href="http://kjur.github.io/jsrsasign/api/symbols/X509.html" rel="nofollow">jsrsasign x.509 apidoc</a></p>