我正在开发一个TCP客户端来连接OpenSSL服务器和证书身份验证.我使用服务器团队共享的.crt和.key文件.这些证书由OpenSSL命令生成.
我使用的SslStream对象调用来验证TCP客户端SslStream.AuthenticateAsClient通过将服务器的方法IP,SslProtocols.Ssl3和X509CertificateCollection.
SslStream
SslStream.AuthenticateAsClient
IP
SslProtocols.Ssl3
X509CertificateCollection
我收到以下错误:
身份验证失败,因为远程方已关闭传输流
.net openssl sslstream x509certificate
.net ×1
openssl ×1
sslstream ×1
x509certificate ×1