C# 클래스 GSF.Security.GenerateCertificate

Generates X509Certificate2s.
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
CreateSelfSignedCertificate ( string subjectDirName, int signatureBits, int keyStrength ) : X509Certificate2

Creates a self signed certificate that can be used in SSL communications

CreateSelfSignedCertificate ( string subjectDirName, System.DateTime startDate, System.DateTime endDate, int signatureBits, int keyStrength, string password, string fileName ) : void

Creates new certificate

OpenCertificate ( string fileName, string password ) : X509Certificate2

Opens a certificate, loading the private key of the PFX file.

메소드 상세

CreateSelfSignedCertificate() 공개 정적인 메소드

Creates a self signed certificate that can be used in SSL communications
public static CreateSelfSignedCertificate ( string subjectDirName, int signatureBits, int keyStrength ) : X509Certificate2
subjectDirName string A valid DirName formated string. Example: CN=ServerName
signatureBits int Bitstrength of signature algorithm. Supported Lengths are 160,256, and 384
keyStrength int RSA key strength. Typically a multiple of 1024.
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

CreateSelfSignedCertificate() 공개 정적인 메소드

Creates new certificate
public static CreateSelfSignedCertificate ( string subjectDirName, System.DateTime startDate, System.DateTime endDate, int signatureBits, int keyStrength, string password, string fileName ) : void
subjectDirName string
startDate System.DateTime
endDate System.DateTime
signatureBits int
keyStrength int
password string
fileName string
리턴 void

OpenCertificate() 공개 정적인 메소드

Opens a certificate, loading the private key of the PFX file.
public static OpenCertificate ( string fileName, string password ) : X509Certificate2
fileName string
password string
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2