Adds an Extended Key Usage extension to the CSR.
Extended key usage purposes
This builder for chaining
Adds an extension to the CSR. Extensions are included in the extensionRequest attribute.
The extension to add
This builder for chaining
Adds multiple extensions to the CSR.
Array of extensions to add
This builder for chaining
Adds a Key Usage extension to the CSR.
Key usage flags
This builder for chaining
Adds a Subject Alternative Name extension to the CSR. Strings are automatically converted to DNS names.
Alternative names for the subject (strings or GeneralName objects)
This builder for chaining
Builds and signs the certificate signing request.
Promise resolving to the signed CSR
Sets the signature algorithm.
Algorithm parameters or SignatureAlgorithmIdentifier
This builder for chaining
Sets the private key for signing the CSR.
The private key
This builder for chaining
Sets the subject's public key.
The subject's public key
This builder for chaining
Sets the subject distinguished name for the CSR.
Subject DN as string or Name object
This builder for chaining
Builder class for creating PKCS#10 certificate signing requests (CSRs).
This builder provides a fluent API for constructing CSRs with various options including subject, extensions, and signature algorithm.
Example