Documentation ¶
Index ¶
Constants ¶
View Source
const ( CertLabel = "CERTIFICATE" PrivateKeyLabel = "PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TlsCertificateRetriever ¶
type TlsCertificateRetriever interface { GetCertificate() (*x509.Certificate, error) GetPrivateKey() (crypto.PrivateKey, error) }
TlsCertificateRetriever is the interface used by both windows and linux and cert from file retriever.
func GetTlsCertificateRetriever ¶
func GetTlsCertificateRetriever(settings TlsSettings) (TlsCertificateRetriever, error)
func NewTlsCertificateRetriever ¶
func NewTlsCertificateRetriever(settings TlsSettings) (TlsCertificateRetriever, error)
NewTlsCertificateRetriever creates a TlsCertificateRetriever NewTlsCertificateRetriever depends on the pem being available linux users generally store certificates at /etc/ssl/certs/
type TlsSettings ¶
type TlsSettings struct { TLSSubjectName string TLSCertificatePath string TLSPort string KeyVaultURL string KeyVaultCertificateName string MSIResourceID string KeyVaultCertificateRefreshInterval time.Duration UseMTLS bool MinTLSVersion string }
TlsSettings - Details related to the TLS certificate.
Click to show internal directories.
Click to hide internal directories.