Exemple #1
0
        static void Net_Test10_SslServer()
        {
            SslServerOptions opt = new SslServerOptions(LocalNet, new PalSslServerAuthenticationOptions()
            {
                AllowAnyClientCert = true,
                ServerCertificate  = DevTools.TestSampleCert,
            },
                                                        null,
                                                        IPUtil.GenerateListeningEndPointsList(false, 444));

            using (SslServerTest svr = new SslServerTest(opt))
            {
                Con.ReadLine("Enter to quit:");
            }
        }
 public LogServerOptionsBase(TcpIpSystem tcpIp, PalSslServerAuthenticationOptions sslAuthOptions, string?rateLimiterConfigName = null, params IPEndPoint[] endPoints)
     : base(tcpIp, sslAuthOptions, rateLimiterConfigName, endPoints.Any() ? endPoints : IPUtil.GenerateListeningEndPointsList(false, Consts.Ports.LogServerDefaultServicePort))
 {
 }
 public LogServerOptionsBase(TcpIpSystem?tcpIp, PalSslServerAuthenticationOptions sslAuthOptions, int[] ports, string?rateLimiterConfigName = null)
     : base(tcpIp, sslAuthOptions, rateLimiterConfigName, IPUtil.GenerateListeningEndPointsList(false, ports))
 {
 }
 public DataVaultServerOptionsBase(TcpIpSystem?tcpIp, PalSslServerAuthenticationOptions sslAuthOptions, int[] ports, string accessKey, string?rateLimiterConfigName = null)
     : base(tcpIp, sslAuthOptions, rateLimiterConfigName, IPUtil.GenerateListeningEndPointsList(false, ports))
 {
     this.AccessKey = accessKey;
 }