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

readPemFile

static fun readPemFile(certificate: Path): ByteArray (source)

Read a PEM-encoded file.

Parameters

certificate - The path to a PEM-encoded file.

Exceptions

IOException - If an IO error occurs.

Return
The bytes for the PEM content.