CertificateResponse

data class CertificateResponse(val issuer: String, val notAfterTime: String, val notBeforeTime: String, val parsed: Boolean, val rawDer: String, val serialNumber: String, val sha256Fingerprint: String, val subject: String, val subjectAlternativeDnsNames: List<String>)

A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.

Constructors

Link copied to clipboard
fun CertificateResponse(issuer: String, notAfterTime: String, notBeforeTime: String, parsed: Boolean, rawDer: String, serialNumber: String, sha256Fingerprint: String, subject: String, subjectAlternativeDnsNames: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The issuer distinguished name in RFC 2253 format. Only present if parsed is true.

Link copied to clipboard

The certificate is not valid after this time. Only present if parsed is true.

Link copied to clipboard

The certificate is not valid before this time. Only present if parsed is true.

Link copied to clipboard

True if the certificate was parsed successfully.

Link copied to clipboard

The raw certificate bytes in DER format.

Link copied to clipboard

The certificate serial number as a hex string. Only present if parsed is true.

Link copied to clipboard

The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.

Link copied to clipboard

The subject distinguished name in RFC 2253 format. Only present if parsed is true.

Link copied to clipboard

The subject Alternative DNS names. Only present if parsed is true.