Permalink
Browse files

Add a getFingerprint method, docs, and unit test.

  • Loading branch information...
hildjj committed Oct 6, 2012
1 parent 44c08bc commit 0a720c763527c323bf0d071e145e09f22859025d
Showing with 215 additions and 124 deletions.
  1. +11 −0 README.md
  2. +132 −70 lib/pem.js
  3. +72 −54 test/pem.js
View
@@ -93,6 +93,17 @@ Where
* **certificate** is a PEM encoded CSR or a certificate
* **callback** is a callback function with an error object and `{country, state, locality, organization, organizationUnit, commonName, emailAddress}`
+### Get fingerprint
+
+Use `getFingerprint` to get the SHA1 fingerprint for a certificate
+
+ pem.getFingerprint(certificate, callback)
+
+Where
+
+ * **certificate** is a PEM encoded certificate
+ * **callback** is a callback function with an error object and `{fingerprint}`
+
## License
**MIT**
Oops, something went wrong.

0 comments on commit 0a720c7

Please sign in to comment.