【发布时间】:2017-05-15 05:47:41
【问题描述】:
我将 Keystonejs 设置为使用密钥和链式证书,它运行 ssl 很好,因为我可以使用 google chrome 登录 cms 并获得安全连接。问题是我的本地托管 api 无法通过 https 连接到 keystonejs cms api。
当我从本地托管的 api 向本地或 aws 上托管的 cms 发送请求时,它返回此错误:
"reason": "Host: localhost. is not in the cert's altnames: DNS:omitted.com, DNS:www.omitted.com",
"host": "localhost",
"cert": {
"subject": {
"OU": [
"Domain Control Validated",
"PositiveSSL"
],
"CN": "cms.omitted.com"
},
"issuer": {
"C": "GB",
"ST": "Greater Manchester",
"L": "Salford",
"O": "COMODO CA Limited",
"CN": "COMODO RSA Domain Validation Secure Server CA"
},
...
...
我都试过了,有人遇到过这个吗?
【问题讨论】:
标签: javascript node.js ssl mongoose keystonejs