Fix for pull request #85, renamed DefaultSslConfiguration property to SslConfiguration property

This commit is contained in:
sta
2014-10-31 20:40:01 +09:00
parent 912b1f0d62
commit 689cc28532
4 changed files with 43 additions and 39 deletions

View File

@@ -28,8 +28,8 @@ namespace Example3
#endif
/* To provide the secure connection.
var cert = ConfigurationManager.AppSettings["ServerCertFile"];
var password = ConfigurationManager.AppSettings["CertFilePassword"];
httpsv.Certificate = new X509Certificate2 (cert, password);
var passwd = ConfigurationManager.AppSettings["CertFilePassword"];
httpsv.SslConfiguration.ServerCertificate = new X509Certificate2 (cert, passwd);
*/
/* To provide the HTTP Authentication (Basic/Digest).