Asp.net确定IIS站点的SSL证书过期

时间:2013-04-04 12:09:16

标签: asp.net ssl certificate

我正在尝试使用Net.WebRequest和Net.WebResponse连接到某个站点并获取SSL证书的到期日期。我查看请求和响应的所有属性,但无法找到此信息。有人可以帮忙吗?

    ' Initialize the WebRequest. 
    Dim myRequest As Net.WebRequest = Net.WebRequest.Create("https://testsite.com")

    ' Return the response.  
    Dim myResponse As Net.WebResponse = myRequest.GetResponse()

有没有办法为此使用WebRequest的服务点?

0 个答案:

没有答案