Ejemplo n.º 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);
 }
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
		}