C# Класс Advtools.ADVpki.CertificatesAuthority

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CertificatesAuthority() публичный Метод

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.
Результат System

CertificatesAuthority() публичный Метод

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
Результат System

GenerateCertificate() публичный Метод

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
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

SignRequest() публичный Метод

public SignRequest ( string csrFile, Usage usage, int validity ) : X509Certificate2
csrFile string
usage Usage
validity int
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

SignRequest() публичный Метод

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
Результат System.Security.Cryptography.X509Certificates.X509Certificate2