TCP服务端能正常连接,但是SSL服务端连接怎么都有问题,连接进入马上就断开了,错误代码13 ' T8 g5 Q6 y6 C) f3 G* l6 B. B % j8 D1 y6 i6 }7 o" m % K( e3 l2 i# p3 q1 F* rusing System;$ ?8 L2 b, o' n! y9 g
using System.Threading.Tasks;& X/ O( `* f% U, `; X: G$ z
using HPSocket; / x5 ?* P3 x" |using HPSocket.Ssl;6 g- ~) A. h* w% M
using HPSocket.Tcp;0 d/ U( A5 f O1 K
4 ]0 k8 c/ d$ ^$ L* E g$ jnamespace SslServerDemo + @% p# e4 x" W) O9 U! u{ / Y6 _" c5 s, \2 g8 g( f class Program6 H- A3 ~( R) ?+ [: y) X4 L4 j. D
{! }! `0 w, i3 E6 l
static void Main(string[] args)$ \4 h$ Z/ I4 y
{ % n8 F7 q" w8 _# W- U) E: o$ ~ // 创建SSL服务端$ J: s* e+ p2 l4 q5 U
//var server = new SslServer(); & R/ ^9 \/ E8 F. k# M# w ISslServer server = new SslServer(); $ X, a) W' O, z
& r+ H0 ^5 r5 ~% M, G
// 设置证书和私钥) D9 u4 v0 Z6 a: k1 a. _
( V U+ Z. d7 _6 G+ C, E3 ^
server.Initialize(false); 1 I3 a3 ]- u- V: ^ server.VerifyMode = SslVerifyMode.None;0 Q4 X' \2 P& ?, M5 B
server.PemCertFile = "D:/cxiapu/zs/server.crt"; . O8 a" G9 V4 Q6 |! U7 S server.PemKeyFile = "D:/cxiapu/zs/server.key";* r: Y z9 j* x
server.KeyPassword = "mwyfeeq568"; . l8 P( A$ y6 Q! y7 g8 d& t server.CaPemCertFileOrPath = "D:/cxiapu/zs/ca.crt";. W% P0 G& e5 [7 Z: N