HttpServer.HttpListener.HttpListener C# (CSharp) Method

HttpListener() public method

Launch HttpListener in SSL mode
public HttpListener ( IPAddress address, int port, X509Certificate certificate, X509Certificate rootCA, SslProtocols protocol, bool requireClientCerts ) : System
address System.Net.IPAddress IP Address to accept connections on
port int TCP Port to listen on, default HTTPS port is 443
certificate System.Security.Cryptography.X509Certificates.X509Certificate Certificate to use
rootCA System.Security.Cryptography.X509Certificates.X509Certificate Certificate for the root certificate authority that signed the server /// certificate and/or any client certificates
protocol SslProtocols which HTTPS protocol to use, default is TLS.
requireClientCerts bool True to require client SSL certificates, otherwise false
return System
        public HttpListener(IPAddress address, int port, X509Certificate certificate, X509Certificate rootCA,
            SslProtocols protocol, bool requireClientCerts)
            : this(address, port)
        {
            Check.Require(certificate, "certificate");
            Check.Require(rootCA, "rootCA");

            _certificate = certificate;
            _rootCA = rootCA;
            _sslProtocol = protocol;
            _requireClientCerts = requireClientCerts;
        }
HttpListener