# Functions

EncodePublicKey encodes an RSA public key into its PEM representation.
Fingerprint returns the encoded fingerprint for the given certificate.
NewAuthority constructs a new self signed certificate authority.
NewServerCertificateValidator creates a new custom server certificate validator from the given certificate authority, and instance details.
ParseCertificate decodes a PEM encoded certificate.

# Variables

ErrCommonNameMismatch is returned when the server certificate common name does not match our database.
ErrInvalidPEM is returned when a malformed certificate is provided.
ErrNoCertificate is returned when the server does not supply a valid certificate chain.

# Structs

Authority is a local certificate authority used by the mock service that is part of the db-auth-gateway tests.