static fun certificateFingerprint(certificate: Path): ByteArray
(source)
Calculate the fingerprint for a PEM-encoded certificate.
certificate
- The path to a PEM-encoded certificate.
IOException
- If an IO error occurs.
Return
The fingerprint bytes for the certificate.
static fun certificateFingerprint(certificate: Certificate): ByteArray
(source)
Calculate the fingerprint for certificate.
certificate
- The certificate.
CertificateEncodingException
- If the certificate cannot be encoded.
Return
The fingerprint bytes for the certificate.