Documentation ¶
Index ¶
- func CreateCertTemplate(role ssntp.Role, organization string, email string, hosts []string, ...) (*x509.Certificate, error)
- func CreateClientCert(template *x509.Certificate, useElliptic bool, serverCert []byte, ...) error
- func CreateServerCert(template *x509.Certificate, useElliptic bool, certOutput io.Writer, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertTemplate ¶
func CreateCertTemplate(role ssntp.Role, organization string, email string, hosts []string, mgmtIPs []string) (*x509.Certificate, error)
CreateCertTemplate provides the certificate template from which client or server certificated can be derived.
func CreateClientCert ¶
func CreateClientCert(template *x509.Certificate, useElliptic bool, serverCert []byte, certOutput io.Writer) error
CreateClientCert creates the client certificate signed by the giver server certificate. It is written PEM encoded.
func CreateServerCert ¶
func CreateServerCert(template *x509.Certificate, useElliptic bool, certOutput io.Writer, caCertOutput io.Writer) error
CreateServerCert creates the server certificate and the CA certificate. Both are written out PEM encoded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.