net / org.apache.tuweni.net.tls / TLS / certificateHexFingerprint

certificateHexFingerprint

static fun certificateHexFingerprint(certificate: Path): String (source)

Calculate the fingerprint for a PEM-encoded certificate.

Parameters

certificate - The path to a PEM-encoded certificate.

Exceptions

IOException - If an IO error occurs.

Return
The fingerprint hex-string for the certificate.

static fun certificateHexFingerprint(certificate: Certificate): String (source)

Calculate the fingerprint for certificate.

Parameters

certificate - The certificate.

Exceptions

CertificateEncodingException - If the certificate cannot be encoded.

Return
The fingerprint hex-string for the certificate.