mixin

Funcs

Funcs : Funcs

meta mixin slots cryptoGenSelfSignedCert

Generate a self-signed certificate and store it in the keystore with the given alias

cryptoGenSelfSignedCert (alias: Str, subjectDn: Str, opts: Dict) => Obj? <su>

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.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST