Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeyType = RSAKeyType
View Source
var (
DefaultValidityPeriod = 10 * 365 * 24 * time.Hour
)
Functions ¶
func ParsePrivateKey ¶ added in v1.8.1
func ParsePrivateKey(data []byte) (crypto.PrivateKey, error)
ParsePrivateKey parses an ASN.1 DER-encoded private key. This is basically what tls.X509KeyPair does internally.
func VerifyOnlyCA ¶
Types ¶
type KeyPair ¶
func NewSelfSignedCert ¶
type KeyType ¶ added in v1.8.1
var RSAKeyType KeyType = func() (crypto.Signer, error) { return util_rsa.GenerateKey(util_rsa.DefaultKeySize) }
Click to show internal directories.
Click to hide internal directories.