CertificateManager.NewCertificateRequest method
Creates a new Certificate Signing Request (CSR) and returns the PEM-encoded CSR and the private key.
public static CsrResult NewCertificateRequest(CsrOptions options,
ReadOnlySpan<char> encryptionPassword = default)
| parameter | description |
|---|---|
| options | The options for the CSR. |
| encryptionPassword | The password to encrypt the private key, if desired. |
Return Value
A CsrResult containing the CSR and private key information.
Exceptions
| exception | condition |
|---|---|
| ArgumentOutOfRangeException |
See Also
- record CsrResult
- record CsrOptions
- class CertificateManager
- namespace Kestrun.Certificates