Add wrapper for getting X509_digest from a cert
authorAnirudh Ramachandran <avr@fb.com>
Mon, 4 Dec 2017 07:56:21 +0000 (23:56 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 4 Dec 2017 08:07:27 +0000 (00:07 -0800)
commit192d78d40551ec5d9aade5ca72dd6e33ad700a2b
tree6f085de6406ff4ea42e296ee6e0c4be79a1fa6d1
parent0d13183a2c02539d216e6f16f8b27a8ffb359190
Add wrapper for getting X509_digest from a cert

Summary:
X509_digest, or the "fingerprint" of the cert, is useful to identify
certificates with the same CN/SANs. This adds an API to get the SHA1 or SHA256
digest of a cert.

Reviewed By: yfeldblum

Differential Revision: D6457917

fbshipit-source-id: 148a5a2270e938b39065e00d7947c2fc57cd7f75
folly/ssl/OpenSSLCertUtils.cpp
folly/ssl/OpenSSLCertUtils.h
folly/ssl/test/OpenSSLCertUtilsTest.cpp