C# 클래스 Elastacloud.AzureManagement.Fluent.Helpers.CertificateGenerator

Certificate generator class used to create an X509 cert with exportable privatekey and optionally add to the personal store
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 메소드들

메소드 설명
AddToMyStore ( X509Certificate2 certificate2 ) : void

Adds a certificate to My store for the LocalMachine

CertificateGenerator ( ) : System
CertificateGenerator ( string subscriptionId, X509Certificate2 managementCertificate ) : System
Create ( string name, System.DateTime start, System.DateTime end, string userPassword, bool addtoStore = false ) : X509Certificate2

Static method used to create a certificate and return as a .net object

ExportToFileSystem ( string exportDirectory ) : void

Used to export the certificates to the filesystem

ExportToStorageAccount ( string account, string container, string folder ) : string
GetCerData ( ) : byte[]
GetPemData ( ) : string
GetPfxData ( ) : byte[]
IsInMyStore ( X509Certificate2 certificate2 ) : bool

Checks to see whether the certificate is in the appropriate store

RemoveFromMyStore ( X509Certificate2 certificate2 ) : void

Removes a certificate from My LocalMachine Store

비공개 메소드들

메소드 설명
ReturnStore ( ) : X509Store

Returns the My LocalMachine store

메소드 상세

AddToMyStore() 공개 메소드

Adds a certificate to My store for the LocalMachine
public AddToMyStore ( X509Certificate2 certificate2 ) : void
certificate2 System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 void

CertificateGenerator() 공개 메소드

public CertificateGenerator ( ) : System
리턴 System

CertificateGenerator() 공개 메소드

public CertificateGenerator ( string subscriptionId, X509Certificate2 managementCertificate ) : System
subscriptionId string
managementCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 System

Create() 공개 메소드

Static method used to create a certificate and return as a .net object
public Create ( string name, System.DateTime start, System.DateTime end, string userPassword, bool addtoStore = false ) : X509Certificate2
name string
start System.DateTime
end System.DateTime
userPassword string
addtoStore bool
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

ExportToFileSystem() 공개 메소드

Used to export the certificates to the filesystem
public ExportToFileSystem ( string exportDirectory ) : void
exportDirectory string
리턴 void

ExportToStorageAccount() 공개 메소드

public ExportToStorageAccount ( string account, string container, string folder ) : string
account string
container string
folder string
리턴 string

GetCerData() 공개 메소드

public GetCerData ( ) : byte[]
리턴 byte[]

GetPemData() 공개 메소드

public GetPemData ( ) : string
리턴 string

GetPfxData() 공개 메소드

public GetPfxData ( ) : byte[]
리턴 byte[]

IsInMyStore() 공개 메소드

Checks to see whether the certificate is in the appropriate store
public IsInMyStore ( X509Certificate2 certificate2 ) : bool
certificate2 System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 bool

RemoveFromMyStore() 공개 메소드

Removes a certificate from My LocalMachine Store
public RemoveFromMyStore ( X509Certificate2 certificate2 ) : void
certificate2 System.Security.Cryptography.X509Certificates.X509Certificate2
리턴 void