Documentation ¶
Index ¶
- Constants
- func CreatePrivateKey(bits int) (*rsa.PrivateKey, error)
- func CreateSelfSignedCA(privateKeyBits int, serialNumber *big.Int, subject pkix.Name, ...) (*x509.Certificate, []byte, *bytes.Buffer, *rsa.PrivateKey, *bytes.Buffer, ...)
- func CreateSelfSignedCertificate(caCert *x509.Certificate, caPrivKey *rsa.PrivateKey, privateKeyBits int, ...) (*x509.Certificate, []byte, *bytes.Buffer, *rsa.PrivateKey, *bytes.Buffer, ...)
- func CreateSerialNumber(nbr int) *big.Int
- func CreateSubject(organization, country, province, locality, streetAddress, postalCode []string) (pkix.Name, error)
- func PEMEncodeBlock(blockType string, byArray []byte) (*bytes.Buffer, error)
Constants ¶
View Source
const ( Certificate = "CERTIFICATE" RSAPrivateKey = "RSA PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
func CreatePrivateKey ¶
func CreatePrivateKey(bits int) (*rsa.PrivateKey, error)
func CreateSelfSignedCA ¶
func CreateSerialNumber ¶
func CreateSubject ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.