Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTLSCert ¶
func MakeTLSCert(license License) (*tls.Certificate, error)
MakeTLSCert takes the provided license and makes a TLS certificate which is the format used by Go servers
func MakeTLSConfig ¶
MakeTLSConfig builds a client TLS config from the supplied license
Types ¶
type License ¶
type License struct {
// Cert is the x509 license certificate
Cert *x509.Certificate
// RawPayload contains raw license payload
RawPayload []byte
// CertPEM is the certificate part of the license in PEM format
CertPEM []byte
// KeyPEM is the private key part of the license in PEM Format,
// may be empty if the license was parsed from certificate only
KeyPEM []byte
}
License represents Gravitational license
func ParseLicensePEM ¶
ParseLicensePEM parses license PEM, parses payload on demand
Click to show internal directories.
Click to hide internal directories.