def
func:cryptoGenSelfSignedCert
cryptoGenSelfSignedCert(alias, subjectDn, opts: {})
Generate a self-signed certificate and store it in the keystore with the given alias. A new 2048-bit RSA key will be generated and then self-signed for the given subject DN. The following options are supported for configuring the signing:
notBefore
(Date): the start date for certificate validity period (default=today)notAfter
(Date): the end date for the certificate validity period (default=today+365day)
This func will throw an error if an entry with the given alias already exists.
meta
def | func:cryptoGenSelfSignedCert |
---|---|
is | func |
lib | lib:crypto |
name | cryptoGenSelfSignedCert |
su | ✓ |