Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate struct { Certificate string PrivateKey string // contains filtered or unexported fields }
Certificate represents a certificate
func NewCertificateAuthority ¶
func NewCertificateAuthority(authorityName string) (*Certificate, error)
NewCertificateAuthority creates a new certificate authority
func NewCertificateFromv1alpha1 ¶
func NewCertificateFromv1alpha1(certificate *commonv1alpha1.Certificate) *Certificate
NewCertificateFromv1alpha1 returns a certificate from a versioned certificate
func (*Certificate) CreateCertificate ¶
func (certificate *Certificate) CreateCertificate(commonName string, organization []string, extraSANs []string) (string, string, error)
CreateCertificate generates a new certificate and key signed with the current CA
func (*Certificate) Export ¶
func (certificate *Certificate) Export() *commonv1alpha1.Certificate
Export exports the certificate to a versioned certificate
Click to show internal directories.
Click to hide internal directories.