/// <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); }
/// <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; }