The remote certificate is invalid according to the validation procedure

自古美人都是妖i 提交于 2019-12-10 19:57:42

问题


Since the Oct 1st Facebook update requiring SSL for canvas apps my Facebook Application has stopped working and displays the error:

The remote certificate is invalid according to the validation procedure.

I'm using the C# Facebook SDK, and my app is ASP.NET MVC3

I've bought an SSL certificate and it seemed to install OK - but still getting this error.

Any ideas? Thanks

Nick


回答1:


hmmmm, check the date and time setting on your server! I found mine to be set to 2002 for some stupid reason! Once it was set to the correct date, the certificate was valid and all is good.

Hope this helps someone else out!




回答2:


I had my local security policy on the server configured incorrectly. Go to Local Security Policy > Public Key Policis > Certificate Path Validation Setting. On the Network Retrieval tab make sure "Define the policy settings" is not checked and "Allow issuer certificate (AIA) retrieval during path validation (recommended) is also not checked.



来源:https://stackoverflow.com/questions/7856475/the-remote-certificate-is-invalid-according-to-the-validation-procedure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!