Documentation
¶
Index ¶
- Variables
- func GetServiceAltNames(oc *v1alpha1.OnecloudCluster, serviceName string, certName string) (*certutil.AltNames, error)
- func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, config *certutil.Config) (*x509.Certificate, crypto.Signer, error)
- func NewCertificateAuthority(config *certutil.Config) (*x509.Certificate, crypto.Signer, error)
- func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewPrivateKey = pkiutil.NewPrivateKey EncodeCertPEM = pkiutil.EncodeCertPEM TryLoadCertFromDisk = pkiutil.TryLoadCertFromDisk TryLoadKeyFromDisk = pkiutil.TryLoadKeyFromDisk )
Functions ¶
func GetServiceAltNames ¶
func GetServiceAltNames(oc *v1alpha1.OnecloudCluster, serviceName string, certName string) (*certutil.AltNames, error)
GetServiceAltNames builds an AltNames object to be used when generating service certificate
func NewCertAndKey ¶
func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, config *certutil.Config) (*x509.Certificate, crypto.Signer, error)
NewCertAndKey creates new certificate and key by passing the certificate authority certificate and key
func NewCertificateAuthority ¶
NewCertificateAuthority creates new certificate and private key for the certificate authority
func NewSignedCert ¶
func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer) (*x509.Certificate, error)
NewSignedCert creates a signed certificate using the given CA certificate and key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.