tuweni / 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 - Path!: The path to a PEM-encoded certificate.

Exceptions

IOException - If an IO error occurs.

Return
String!: The fingerprint hex-string for the certificate.

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

Calculate the fingerprint for certificate.

Parameters

certificate - Certificate!: The certificate.

Exceptions

CertificateEncodingException - If the certificate cannot be encoded.

Return
String!: The fingerprint hex-string for the certificate.