Пример #1
0
            static SslOptions CreateSslOptions()
            {
                var options = new SslOptions();

                options.ServerOptions.ServerCertificate = LoadCertificate();
                options.ClientOptions.TargetHost        = "localhost";
                options.ClientOptions.RemoteCertificateValidationCallback = RaftClientHandlerFactory.AllowCertificate;
                return(options);
            }
Пример #2
0
            static SslOptions CreateSslOptions()
            {
                var options = new SslOptions();

                options.ServerOptions.ServerCertificate = LoadCertificate();
                options.ClientOptions.TargetHost        = "localhost";
                options.ClientOptions.RemoteCertificateValidationCallback = AllowAnyCert;
                return(options);
            }