Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAndVerifyCertificate ¶
func ExtractAndVerifyCertificate(certificate []byte) (*x509.Certificate, *ecdsa.PrivateKey, error)
Types ¶
type CertificatePrivateKeyPair ¶
type CertificatePrivateKeyPair struct { CertificatePEM string PrivateKeyPEM string Certificate []byte // DER }
func NewClientCertificate ¶
func NewClientCertificate(certificate []byte) (*CertificatePrivateKeyPair, error)
func NewClusterCertificate ¶
func NewClusterCertificate() (*CertificatePrivateKeyPair, error)
type NodeCertificatePrivateKeyPair ¶
type NodeCertificatePrivateKeyPair struct { CertificateRoot *x509.Certificate Certificate []byte // DER PrivateKey *ecdsa.PrivateKey }
func GenerateNodeCertificatePrivateKeyPair ¶
func GenerateNodeCertificatePrivateKeyPair(certificate []byte) (*NodeCertificatePrivateKeyPair, error)
Click to show internal directories.
Click to hide internal directories.