Skip to content

Commit

Permalink
Add a getFingerprint method, docs, and unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Oct 16, 2012
1 parent 44c08bc commit 0a720c7
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 124 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Loading

0 comments on commit 0a720c7

Please sign in to comment.