开发者

webrequest.GetResponse https throw error 403 protocolerror on windows 2008 x64

开发者 https://www.devze.com 2023-01-14 14:53 出处:网络
I have a application use Webrequest to post and get some data from a server with a SSL certificate. It is all very well except on Window开发者_运维技巧s 2008 x64. The server return error 403 forbidden

I have a application use Webrequest to post and get some data from a server with a SSL certificate. It is all very well except on Window开发者_运维技巧s 2008 x64. The server return error 403 forbidden.

thanks in advance.

burns


After several debug, I found that is X509Certificate problem. does have the different behavior between window x32 and x64 with X509Certificate cert = X509Certificate.CreateFromCertFile(Path); Webrequest.ClientCertificates.Add(cert)?

0

精彩评论

暂无评论...
验证码 换一张
取 消