VB .net Accept Self-Signed SSL certificate

后端 未结 4 1865
不思量自难忘°
不思量自难忘° 2021-01-01 14:50

I\'m searching for a way to validate (or bypass validation for) self-signed SSL certificates using VB .Net. I found code to do this in C# and tried converting it into VB co

4条回答
  •  死守一世寂寞
    2021-01-01 15:40

    In VB.Net, you need to write

    ServicePointManager.ServerCertificateValidationCallback = AddressOf AcceptAllCertifications
    

提交回复
热议问题