Extension methods for certificates.
More...
|
static byte[] | BNToByteArray (this X509Certificate2 cert, string? password=null, X509ContentType type=X509ContentType.Cert) |
| Converts a X509-certificate to a byte-array.
|
|
Extension methods for certificates.
◆ BNToByteArray()
static byte[] BogaNet.Extension.CertificateExtension.BNToByteArray |
( |
this X509Certificate2 | cert, |
|
|
string? | password = null, |
|
|
X509ContentType | type = X509ContentType::Cert ) |
|
static |
Converts a X509-certificate to a byte-array.
- Parameters
-
cert | X509-certificate |
password | Password for the certificate (optional, default: none) |
type | Type of the content (optional, default: Cert (=public key)) |
- Returns
- Byte-array with the X509-certificate
- Exceptions
-
The documentation for this class was generated from the following file: