VB .net Accept Self-Signed SSL certificate

后端 未结 4 1860
不思量自难忘°
不思量自难忘° 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:16

    In VB.Net,

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
    

    solves the less secure apps problem.

提交回复
热议问题