【发布时间】:2017-01-14 20:54:44
【问题描述】:
我有一个使用自签名证书进行身份验证的 Node.js https 服务器。我现在正在使用我的公共 IP 地址 (xxx.xxx.xxx.xxx) 而不是域名。为了测试这一点,我在路由器上转发了端口 8080,然后转到https://xxx.xxx.xxx.xxx:8080,果然没有锁定符号。 Chrome 会识别证书,并建立安全连接。
如果 Chrome 可以看到我的网络服务,为什么 Alexa 不能?我基本上遵循了here 的步骤。我在 Amazon Developer Portal 中创建了一个新的 Alexa Skill,创建并上传了我的 openssl 证书(已被证明有效),并将端点设置为 https://xxx.xxx.xxx.xxx:8080。所以 Alexa 应该能够访问我的网络服务。相反,我得到:
测试错误(在 Amazon Developer Portal 中测试时)
The remote endpoint could not be called, or the response it returned was invalid.
卡错误(要求 Echo 启动服务时在 Alexa 应用程序中)
A connection could not be established to Resource [https://xxx.xxx.xxx.xxx:8080], Type [HTTP], Region [NA]
【问题讨论】:
-
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Information Security Stack Exchange 会是一个更好的提问地方。还有Where do I post questions about Dev Ops?.
-
您的证书是什么样的?请张贴。 IP 地址
xxx.xxx.xxx.xxx是什么?它在证书中作为 SAN 吗? Alexa Web Service 使用什么标准来验证证书?另见How to create a self-signed certificate with openssl? -
我遇到了类似的问题,当我使用域名而不是公共 ip 时解决了。
标签: web-services amazon-web-services https ip-address alexa-skills-kit