Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SubjectIssuer = "k8s"
)
Functions ¶
func GenerateCertificate ¶
func GenerateCertificate(hosts []string) (*Certificate, *Certificate, error)
Types ¶
type CertNotify ¶
type CertNotify struct {
// contains filtered or unexported fields
}
func New ¶
func New(certFile, keyFile string) (*CertNotify, error)
func (*CertNotify) GetCertificate ¶
func (cm *CertNotify) GetCertificate(hello *tls.ClientHelloInfo) (*tls.Certificate, error)
func (*CertNotify) Stop ¶
func (cm *CertNotify) Stop()
func (*CertNotify) Watch ¶
func (cm *CertNotify) Watch() error
type Certificate ¶
func GenerateRootCA ¶
func GenerateRootCA() (*Certificate, error)
func GenerateServer ¶
func GenerateServer(hosts []string, rootCert, rootKey []byte) (*Certificate, error)
type CertificateConfig ¶
type CertificateConfig struct { CryptographyType CryptographyType Bits int After After }
Click to show internal directories.
Click to hide internal directories.