@@ -90,9 +90,9 @@ public void TestServerVerifiedIgnoringNameMismatch() {
90
90
if ( null == sslDir ) return ;
91
91
92
92
ConnectionFactory cf = new ConnectionFactory ( ) ;
93
- cf . Parameters . Ssl . ServerName = "*" ;
94
- cf . Parameters . Ssl . AcceptablePolicyErrors = SslPolicyErrors . RemoteCertificateNameMismatch ;
95
- cf . Parameters . Ssl . Enabled = true ;
93
+ cf . Ssl . ServerName = "*" ;
94
+ cf . Ssl . AcceptablePolicyErrors = SslPolicyErrors . RemoteCertificateNameMismatch ;
95
+ cf . Ssl . Enabled = true ;
96
96
SendReceive ( cf ) ;
97
97
}
98
98
@@ -102,8 +102,8 @@ public void TestServerVerified() {
102
102
if ( null == sslDir ) return ;
103
103
104
104
ConnectionFactory cf = new ConnectionFactory ( ) ;
105
- cf . Parameters . Ssl . ServerName = System . Net . Dns . GetHostName ( ) ;
106
- cf . Parameters . Ssl . Enabled = true ;
105
+ cf . Ssl . ServerName = System . Net . Dns . GetHostName ( ) ;
106
+ cf . Ssl . Enabled = true ;
107
107
SendReceive ( cf ) ;
108
108
}
109
109
@@ -113,13 +113,13 @@ public void TestClientAndServerVerified() {
113
113
if ( null == sslDir ) return ;
114
114
115
115
ConnectionFactory cf = new ConnectionFactory ( ) ;
116
- cf . Parameters . Ssl . ServerName = System . Net . Dns . GetHostName ( ) ;
116
+ cf . Ssl . ServerName = System . Net . Dns . GetHostName ( ) ;
117
117
Assert . IsNotNull ( sslDir ) ;
118
- cf . Parameters . Ssl . CertPath = sslDir + "/client/keycert.p12" ;
118
+ cf . Ssl . CertPath = sslDir + "/client/keycert.p12" ;
119
119
string p12Password = Environment . GetEnvironmentVariable ( "PASSWORD" ) ;
120
120
Assert . IsNotNull ( p12Password , "missing PASSWORD env var" ) ;
121
- cf . Parameters . Ssl . CertPassphrase = p12Password ;
122
- cf . Parameters . Ssl . Enabled = true ;
121
+ cf . Ssl . CertPassphrase = p12Password ;
122
+ cf . Ssl . Enabled = true ;
123
123
SendReceive ( cf ) ;
124
124
}
125
125
}
0 commit comments