Example #1
0
 /// <summary>
 /// Constructs the server with the specified certificate and optionally allowable client certificates
 /// </summary>
 public SslServer(string bindingName, int bindingPort, X509Certificate certificate, ExpectedCertificate[] allowClients)
     : base(bindingName, bindingPort)
 {
     _cert       = certificate;
     _certVerify = new SslCertValidator(allowClients);
 }
Example #2
0
        /// <summary>
        /// Creates the client with the specified client certificiate and a certificate validator
        /// </summary>
        private SslClient(string serverName, int bindingPort, X509Certificate certificate, SslCertValidator validator)
			: base(serverName, bindingPort)
		{
			_cert = certificate;
			_certVerify = validator;
		}
Example #3
0
 /// <summary>
 /// Creates the client with the specified client certificiate and a certificate validator
 /// </summary>
 private SslClient(string serverName, int bindingPort, X509Certificate certificate, SslCertValidator validator)
     : base(serverName, bindingPort)
 {
     _cert       = certificate;
     _certVerify = validator;
 }
Example #4
0
        /// <summary>
        /// Constructs the server with the specified certificate and optionally allowable client certificates
        /// </summary>
		public SslServer(string bindingName, int bindingPort, X509Certificate certificate, ExpectedCertificate[] allowClients)
			: base(bindingName, bindingPort)
		{
			_cert = certificate;
			_certVerify = new SslCertValidator(allowClients);
		}