public static CreateSelfSignedCertificate ( string subjectDirName, int signatureBits, int keyStrength ) : |
||
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. |
Результат |
static SecureStreamClientBase() { #if !SQLCLR try { s_tempCert = GenerateCertificate.CreateSelfSignedCertificate("CN=Local", 256, 1024); } catch { } #endif }
static SecureStreamServerCertificate() { #if !SQLCLR TempCertificate = GenerateCertificate.CreateSelfSignedCertificate("CN=Local", 256, 1024); #endif }