简体   繁体   中英

Checking whether website has certificate C#

is there any way to check whether website has any certificate? I tried to do this with Selenium Web Driver but I had some difficulties. We want to automate navigation through several sites until we find one with certificate. Thanks in advance.

应该尝试使用https://而不是http打开URL,并且如果未引发异常(例如,不是来自受信任的提供程序的证书),或者该页面不存在,则您的页面具有有效的SSL证书。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM