CertificateManager class
Drop-in replacement for Pode’s certificate helpers, powered by Bouncy Castle.
public static class CertificateManager
Public Members
name | description |
---|---|
static Export(…) | Exports the specified X509 certificate to a file in the given format, with optional password and private key inclusion. (2 methods) |
static GetPurposes(…) | Gets the enhanced key usage purposes (EKU) from the specified X509 certificate. |
static Import(…) | Imports an X509 certificate from the specified file path, with optional password and private key file. (4 methods) |
static NewCertificateRequest(…) | Creates a new Certificate Signing Request (CSR) and returns the PEM-encoded CSR and the private key. |
static NewSelfSigned(…) | Creates a new self-signed X509 certificate using the specified options. |
static Validate(…) | Validates the specified X509 certificate according to the provided options. |
record CsrOptions | Options for creating a Certificate Signing Request (CSR). |
enum ExportFormat | Specifies the format to use when exporting certificates. |
enum KeyType | Specifies the type of cryptographic key to use for certificate operations. |
record SelfSignedOptions | Options for creating a self-signed certificate. |
See Also
- namespace Kestrun.Certificates