Interface: GenerateKeyPairOptions

March 19, 2026 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Properties

extractable?

โ€ข optional extractable?: boolean

Indicates whether or not the private key may be exported. Default is false.


modulusLength?

โ€ข optional modulusLength?: number

(RSA algorithms only) The length, in bits, of the RSA modulus. Default is 2048.