How to disable “Security Alert” window in Webbrowser control

前端 未结 5 1356
北海茫月
北海茫月 2020-12-01 15:02

I\'m using Webbrowser control to login to HTTPS site with \"untrusted certificate\". but I get popup such standart window \"Security Alert\" about untrusted certificate:

5条回答
  •  误落风尘
    2020-12-01 15:32

    If the certificate isn't from a trusted certifying authority (the first point in the prompt) then you could install the certificate under the Trusted Root Certification Authorities on the PCs in question.

    You can do this under View Certificate.

    In some ways this could be a simpler solution as it doesn't require any code changes that accept any and all certificates. It does however require the certificate to be installed wherever the application is used.

提交回复
热议问题