本文发表在 rolia.net 枫下论坛only some private ssl server require client certificate signed by themself, so without client certificate, you can't even browse their website. so if you don't have a client certificate, you probably don't need to worry about it.
about server certificate, there are two situation:
1. server has a valid certificate signed by trusted root, then you don't need to do any thing, just call httpwebrequest, or webrequest? , that should do it.
2. server only has a self signed "fake" certificate ( you need to pay money to buy real one ), then you need to do extra work to let your client trust the server, even the certificate is fake.
so now you need to find the answer, does your https server has real certificate? you can easily find it by access the https server by browser. if browser doesn't compalin, then it's a real one (unless your machine already trusted it before, or by some group policy.)
If it's fake, you can google "bypass ssl certificate .Net“, here is one link I found:
http://west-wind.com/weblog/posts/48909.aspx
I更多精彩文章及讨论,请光临枫下论坛 rolia.net
about server certificate, there are two situation:
1. server has a valid certificate signed by trusted root, then you don't need to do any thing, just call httpwebrequest, or webrequest? , that should do it.
2. server only has a self signed "fake" certificate ( you need to pay money to buy real one ), then you need to do extra work to let your client trust the server, even the certificate is fake.
so now you need to find the answer, does your https server has real certificate? you can easily find it by access the https server by browser. if browser doesn't compalin, then it's a real one (unless your machine already trusted it before, or by some group policy.)
If it's fake, you can google "bypass ssl certificate .Net“, here is one link I found:
http://west-wind.com/weblog/posts/48909.aspx
I更多精彩文章及讨论,请光临枫下论坛 rolia.net