VB.net根据验证步骤,远程证书无效

时间:2020-07-29 01:59:16

标签: .net vb.net

我该如何解决此问题,我在YouTube上观看了许多解决方案,因此我竭尽所能!有什么解决办法吗?

此错误始终出现“根据验证过程,远程证书无效。”

这是我的代码:

    Private Function ValidateServerCertificate(ByVal sender As Object, ByVal certificate As X509Certificate, ByVal chain As X509Chain, ByVal sslPolicyErrors__1 As SslPolicyErrors) As Boolean
        Return sslPolicyErrors__1 = SslPolicyErrors.None
    End Function

0 个答案:

没有答案