Documentation ¶ Index ¶ func GenerateCsr(fileName string, key *rsa.PrivateKey, cn string, dns []string, ...) (block *pem.Block, err error) func GetKey(fileName string, rsaSize int) (key *rsa.PrivateKey, err error) func WriteCert(fileName string, cert []byte) (err error) type BasicConstraints Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GenerateCsr ¶ func GenerateCsr(fileName string, key *rsa.PrivateKey, cn string, dns []string, c, st, l, o, ou, email string) (block *pem.Block, err error) func GetKey ¶ func GetKey(fileName string, rsaSize int) (key *rsa.PrivateKey, err error) func WriteCert ¶ func WriteCert(fileName string, cert []byte) (err error) Types ¶ type BasicConstraints ¶ type BasicConstraints struct { IsCA bool `asn1:"optional"` } Source Files ¶ View all Source files crypto.go Click to show internal directories. Click to hide internal directories.