System::Net::Security::SslStream::AuthenticateAsClient 方法

SslStream::AuthenticateAsClient(String) method

对连接的客户端侧进行身份验证。

virtual void System::Net::Security::SslStream::AuthenticateAsClient(String targetHost)
参数类型描述
targetHostString共享当前实例的服务器名称。

另见

SslStream::AuthenticateAsClient(String, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509CertificateCollection>, System::Security::Authentication::SslProtocols, bool) method

对连接的客户端侧进行身份验证。

virtual void System::Net::Security::SslStream::AuthenticateAsClient(String targetHost, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509CertificateCollection> clientCertificates, System::Security::Authentication::SslProtocols enabledSslProtocols, bool checkCertificateRevocation)
参数类型描述
targetHostString共享当前实例的服务器名称。
clientCertificatesSystem::SharedPtr<System::Security::Cryptography::X509Certificates::X509CertificateCollection>客户端证书。
enabledSslProtocolsSystem::Security::Authentication::SslProtocols用于身份验证的 SSL 协议。
checkCertificateRevocationbool指示在身份验证期间是否必须检查证书吊销列表的值。

另见