server/tls/tls_certificate_retriever.go (9 lines of code) (raw):

// Copyright 2020 Microsoft. All rights reserved. package tls import ( "crypto" "crypto/x509" ) // TlsCertificateRetriever is the interface used by // both windows and linux and cert from file retriever. type TlsCertificateRetriever interface { GetCertificate() (*x509.Certificate, error) GetPrivateKey() (crypto.PrivateKey, error) }