[英]keystone js: localhost is not in the certs altnames
I setup Keystonejs to use the key and chained cert, and it is running ssl just fine as I can log into the cms using google chrome and obtain a secure connection. 我设置Keystonejs使用密钥和链式证书,它运行ssl就好了,因为我可以使用谷歌浏览器登录cms并获得安全连接。 The issue is that my local hosted api cannot connect to the keystonejs cms api through https.
问题是我的本地托管api无法通过https连接到keystonejs cms api。
When I send a request from the local hosted api to the cms that is hosted either locally or on aws, it returns this error: 当我从本地托管的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"
},
...
...
I've tried everything, has anyone ran across this? 我已经尝试了一切,有没有人碰过这个?
I don't believe the certificate would be valid when working locally. 我不认为证书在本地工作时有效。 You would need a separate HTTPS certificate for your development environment than what you use in your production environment, since they are referring to two different domain names.
您的开发环境需要一个单独的HTTPS证书,而不是您在生产环境中使用的证书,因为它们指的是两个不同的域名。 Take a look at this SO thread , which might help you.
看看这个SO线程 ,它可能会对你有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.