PemFormat

PEM X.509 certificates reader & writer

Author

Suresh

Properties

Link copied to clipboard
const val ALT_DNS_NAME: Int = 2
Link copied to clipboard
const val ALT_IPA_NAME: Int = 7
Link copied to clipboard
const val ALT_RFC822_NAME: Int = 1

Supported X.509 SAN OIDs

Link copied to clipboard

Functions

Link copied to clipboard
fun encodePem(type: String, encoded: ByteArray): String

Encodes the given encoded bytes to PEM format.

Link copied to clipboard
fun isPem(data: String): Boolean

Checks if the given string is a PEM encoded certificate.

Link copied to clipboard

Read all X.509 certificates from the given PEM encoded certificate.