Skip to content

Commit 0a720c7

Browse files
committed
Add a getFingerprint method, docs, and unit test.
1 parent 44c08bc commit 0a720c7

File tree

3 files changed

+215
-124
lines changed

3 files changed

+215
-124
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ Where
9393
* **certificate** is a PEM encoded CSR or a certificate
9494
* **callback** is a callback function with an error object and `{country, state, locality, organization, organizationUnit, commonName, emailAddress}`
9595

96+
### Get fingerprint
97+
98+
Use `getFingerprint` to get the SHA1 fingerprint for a certificate
99+
100+
pem.getFingerprint(certificate, callback)
101+
102+
Where
103+
104+
* **certificate** is a PEM encoded certificate
105+
* **callback** is a callback function with an error object and `{fingerprint}`
106+
96107
## License
97108

98109
**MIT**

0 commit comments

Comments
 (0)