Appearance
CreateCsr Method
Definition
- Namespace:
JASE.Crypto - Assembly:
JASE.Crypto.dll
Overloads
| Name | Description |
|---|---|
CsrResponse CreateCsr(string subjectName) | Creates a certificate signing request (CSR) using the default RSA options. |
CsrResponse CreateCsr(string subjectName, ICertificateOptions options = null, int keySize = null, IDictionary<string, AlternateSubjectType> alternateNames = null, IEnumerable<X509Extension> customExtensions = null) | Creates a certificate signing request (CSR) using the specified asymmetric algorithm options. |
CsrResponse CreateCsr(string subjectName)
csharp
CsrResponse CreateCsr(string subjectName)Creates a certificate signing request (CSR) using the default RSA options.
Parameters
| Name | Description |
|---|---|
subjectName | The subject name (common name) of the certificate, e.g., "mydomain.com". |
Returns
A CsrResponse object containing the PEM-encoded CSR, private key, and algorithm metadata.
CsrResponse CreateCsr(string subjectName, ICertificateOptions options = null, int keySize = null, IDictionary<string, AlternateSubjectType> alternateNames = null, IEnumerable<X509Extension> customExtensions = null)
csharp
CsrResponse CreateCsr(string subjectName, ICertificateOptions options = null, int keySize = null, IDictionary<string, AlternateSubjectType> alternateNames = null, IEnumerable<X509Extension> customExtensions = null)Creates a certificate signing request (CSR) using the specified asymmetric algorithm options.
Parameters
| Name | Description |
|---|---|
alternateNames | An optional collection of alternate subject names (SAN) and their types (e.g., DNS, IP, URI). |
customExtensions | Optional collection of additional X.509 extensions to include in the CSR. |
keySize | The key size for RSA (ignored for ECDsa). Minimum allowed is 2048. |
options | The asymmetric algorithm and hash provider to use. If null, RSA is used by default. |
subjectName | The subject name (common name) for the certificate, e.g., "mydomain.com". |
Returns
A CsrResponse object containing the PEM-encoded CSR, private key, and algorithm metadata.