Generates X509Certificate2s.
コード例 #1
0
        static SecureStreamClientBase()
        {
#if !SQLCLR
            try
            {
                s_tempCert = GenerateCertificate.CreateSelfSignedCertificate("CN=Local", 256, 1024);
            }
            catch
            {
            }
#endif
        }
コード例 #2
0
        static SecureStreamServerCertificate()
        {
#if !SQLCLR
            TempCertificate = GenerateCertificate.CreateSelfSignedCertificate("CN=Local", 256, 1024);
#endif
        }