Fix for pull request #85, modified a few for WebSocketServer.SslConfiguration property
This commit is contained in:
parent
689cc28532
commit
0de32bbacc
@ -29,8 +29,8 @@ namespace Example2
|
||||
#endif
|
||||
/* To provide the secure connection.
|
||||
var cert = ConfigurationManager.AppSettings["ServerCertFile"];
|
||||
var password = ConfigurationManager.AppSettings["CertFilePassword"];
|
||||
wssv.Certificate = new X509Certificate2 (cert, password);
|
||||
var passwd = ConfigurationManager.AppSettings["CertFilePassword"];
|
||||
wssv.SslConfiguration.ServerCertificate = new X509Certificate2 (cert, passwd);
|
||||
*/
|
||||
|
||||
/* To provide the HTTP Authentication (Basic/Digest).
|
||||
|
@ -442,15 +442,15 @@ namespace WebSocketSharp.Server
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the SSL configuration used to authenticate the server and optionally the client
|
||||
/// on the secure connection.
|
||||
/// for secure connection.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <see cref="ServerSslAuthConfiguration"/> that represents the SSL configuration used to
|
||||
/// authenticate the server and optionally the client.
|
||||
/// A <see cref="ServerSslAuthConfiguration"/> that represents the configuration used to
|
||||
/// authenticate the server and optionally the client for secure connection.
|
||||
/// </value>
|
||||
public ServerSslAuthConfiguration SslConfiguration {
|
||||
get {
|
||||
return _sslConfig;
|
||||
return _sslConfig ?? (_sslConfig = new ServerSslAuthConfiguration (null));
|
||||
}
|
||||
|
||||
set {
|
||||
|
Loading…
Reference in New Issue
Block a user