Wordpress Woocommerce REST API https-无法连接

Wordpress Woocommerce REST API https-无法连接,wordpress,rest,ssl,woocommerce,woocommerce-rest-api,Wordpress,Rest,Ssl,Woocommerce,Woocommerce Rest Api,连接到WooCommerceAPI,HTTP没有问题 当我将永久链接从http更改为https时,然后尝试使用我获得的https url进行连接: { "code": "woocommerce_rest_cannot_view", "message": "Sorry, you cannot list resources.", "data": { "status": 401 } } 我有一个SSL证书,所以我不知道为什么它不能工作 请帮忙 非常感谢 编辑: 请求:HTTP

连接到WooCommerceAPI,HTTP没有问题

当我将永久链接从http更改为https时,然后尝试使用我获得的https url进行连接:

{
  "code": "woocommerce_rest_cannot_view",
  "message": "Sorry, you cannot list resources.",
  "data": {
    "status": 401
  }
}
我有一个SSL证书,所以我不知道为什么它不能工作

请帮忙

非常感谢

编辑: 请求:HTTP

HTTPS

根据:

有时,某些服务器可能无法解析授权标头 正确(如果您在 通过SSL进行身份验证时,会出现服务器问题)。在这种情况下,你 可以提供使用者密钥/密码作为查询字符串参数 相反

检查orders参数的顺序是否与示例相同,没有空格。或者我会使用基本的HTTPS身份验证,这就是我使用HTTPS进行通信的方式:

https://localhost/wp-json/wc/v1/orders?consumer_key=ck_xxxxxxxxxxxxxx&consumer_secret=xxxxxxxxxxxxxxx

你能分享你的请愿书吗?而且,看起来你不是autenticating@Skatox谢谢见附件。非常感谢。现在我的网站是https,我的api hs已经像一个魅力!您可以选择“我的答案”作为答案,这样有助于甲烷储存,因此SSL似乎有问题:响应:stdClass对象([body]=>{“errors”):[{“code”:“woocommerce\u api\u authentication\u error”,“message”:“Consumer key is invalid.”}]}[code]=>401[headers]=>Array([Date]=>Mon,2017年4月24日22:38:41 GMT[Server]=>Apache/2.4.10[Transfer Encoding]=>chunked[Content Type]=>application/json;charset=UTF-8))重新生成使用者密钥,并尝试使用这两种方法进行身份验证。