Documentation ¶
Index ¶
- func GenerateCertificateRequest(keySize int, commonName string, organization []string) ([]byte, []byte, error)
- func GenerateDefaultSelfSignedCertificateLocally() (string, string, error)
- func GenerateSelfSignedCertificate(keySize int, ca *x509.Certificate) ([]byte, []byte, error)
- func NewCA(commonName string, organization []string) *x509.Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificateRequest ¶
func GenerateCertificateRequest(keySize int, commonName string, organization []string) ([]byte, []byte, error)
GenerateCertificateRequest generate certificate request for given commonName and organization. keySize is the size of the private key. CertificateRequest and PrivateKey pem data are returned
func GenerateDefaultSelfSignedCertificateLocally ¶
GenerateDefaultSelfSignedCertificateLocally generate self-signed certificate in local directory and return the path for generated certificate and key
func GenerateSelfSignedCertificate ¶
GenerateSelfSignedCertificate generate self-signed certificate keySize is the size of the private key, ca is the certificate for issuing Certificate and PrivateKey pem data are returned
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.