C# Class Advtools.ADVpki.CertificatesAuthority

Datei anzeigen Open project: ADVTOOLS/ADVpki Class Usage Examples

Public Methods

Method Description
CertificatesAuthority ( string name ) : System

Construct a CertificatesAuthority object with a default name and in the store of the current user

CertificatesAuthority ( string name, System.Security.Cryptography.X509Certificates store ) : System

Construct a CertificatesAuthority object

GenerateCertificate ( string name, Usage usage, int validity ) : X509Certificate2

Generate a new certificate.

SignRequest ( string csrFile, Usage usage, int validity ) : X509Certificate2
SignRequest ( string csrFile, Usage usage, int validity, System.Security.Cryptography.X509Certificates storeName ) : X509Certificate2

Private Methods

Method Description
AddClientCertificateExtensions ( X509V3CertificateGenerator builder ) : void
AddCodeCertificateExtensions ( X509V3CertificateGenerator builder ) : void
AddExtensions ( X509V3CertificateGenerator builder, Usage usage ) : void
AddRootAuthorityCertificateExtensions ( X509V3CertificateGenerator builder ) : void
AddServerCertificateExtensions ( X509V3CertificateGenerator builder ) : void
CreateCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, X509Certificate certificate, AsymmetricKeyParameter privateKey ) : X509Certificate2
GenerateSerial ( ) : byte[]
GetCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, Usage usage, int validity, System.Security.Cryptography.X509Certificates storeName, System.Security.Cryptography.X509Certificates issuer ) : X509Certificate2
GetFriendlyName ( Org.BouncyCastle.Asn1.X509.X509Name name ) : string
GetRootCertificate ( ) : X509Certificate2
InternalGenerateCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, Usage usage, int validity, System.Security.Cryptography.X509Certificates storeName, AsymmetricKeyParameter publicKey, AsymmetricKeyParameter privateKey, AsymmetricKeyParameter signator ) : X509Certificate2
InternalGenerateCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, Usage usage, int validity, System.Security.Cryptography.X509Certificates storeName, System.Security.Cryptography.X509Certificates issuer ) : X509Certificate2
LoadCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, System.Security.Cryptography.X509Certificates storeName, System.Security.Cryptography.X509Certificates location ) : X509Certificate2
ReadPkcs10 ( string file ) : Pkcs10CertificationRequest
StoreCertificate ( Org.BouncyCastle.Asn1.X509.X509Name name, System.Security.Cryptography.X509Certificates certificate, System.Security.Cryptography.X509Certificates storeName ) : void
X509NameFromString ( string name ) : Org.BouncyCastle.Asn1.X509.X509Name

Method Details

CertificatesAuthority() public method

Construct a CertificatesAuthority object with a default name and in the store of the current user
public CertificatesAuthority ( string name ) : System
name string Name of the certification authority.
return System

CertificatesAuthority() public method

Construct a CertificatesAuthority object
public CertificatesAuthority ( string name, System.Security.Cryptography.X509Certificates store ) : System
name string Name of the certification authority.
store System.Security.Cryptography.X509Certificates Where to store the certificates
return System

GenerateCertificate() public method

Generate a new certificate.
public GenerateCertificate ( string name, Usage usage, int validity ) : X509Certificate2
name string Name (subject) of the certificate
usage Usage Usage of the certificate
validity int Validity of the certificate or 0 to use the default validity
return System.Security.Cryptography.X509Certificates.X509Certificate2

SignRequest() public method

public SignRequest ( string csrFile, Usage usage, int validity ) : X509Certificate2
csrFile string
usage Usage
validity int
return System.Security.Cryptography.X509Certificates.X509Certificate2

SignRequest() public method

public SignRequest ( string csrFile, Usage usage, int validity, System.Security.Cryptography.X509Certificates storeName ) : X509Certificate2
csrFile string
usage Usage
validity int
storeName System.Security.Cryptography.X509Certificates
return System.Security.Cryptography.X509Certificates.X509Certificate2