做微信的接口程序,由于accesstoken与其他微信提供的服务都需要通过https访问,在其他机器上正常的程序在一台云服务器上一直不成功,http访问是正常的
找了很久,后来找到如下的说明:
Windows 2003 and earlier versions do
not support SHA2 by default. The administrator must apply the Microsoft hotfix to enable SHA2 support.
Solution
Microsoft has created a hotfix for Windows 2003 that addresses this issue.
See the following Microsoft links for details of how to obtain the hotfix.
See the following Microsoft links for details of how to obtain the hotfix.
- Microsoft KB # 968730 (http://support.microsoft.com/kb/968730)
- Microsoft KB # 938397 (http://support.microsoft.com/kb/938397)
最终原因是win2003及其早期版本不支持SHA2,导致HTTPS交互失败,打上968730的补丁后,重启服务器就好了