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

certificateFingerprint

static fun certificateFingerprint(certificate: Path!): ByteArray! (source)

Calculate the fingerprint for a PEM-encoded certificate.

Parameters

certificate - Path!: The path to a PEM-encoded certificate.

Exceptions

IOException - If an IO error occurs.

Return
ByteArray!: The fingerprint bytes for the certificate.

static fun certificateFingerprint(certificate: Certificate!): ByteArray! (source)

Calculate the fingerprint for certificate.

Parameters

certificate - Certificate!: The certificate.

Exceptions

CertificateEncodingException - If the certificate cannot be encoded.

Return
ByteArray!: The fingerprint bytes for the certificate.