BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.Extension.CertificateExtension Class Reference

Extension methods for certificates. More...

Static Public Member Functions

static byte[] BNToByteArray (this X509Certificate2 cert, string? password=null, X509ContentType type=X509ContentType.Cert)
 Converts a X509-certificate to a byte-array.
 

Detailed Description

Extension methods for certificates.

Member Function Documentation

◆ 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
certX509-certificate
passwordPassword for the certificate (optional, default: none)
typeType of the content (optional, default: Cert (=public key))
Returns
Byte-array with the X509-certificate
Exceptions
ArgumentNullException

The documentation for this class was generated from the following file: