在Android上使用Chrome使用的NodeJS(expressjs)时获得通知警告证书在端口443上运行(HTTPS)
我有Expressjs一个问题 - 在Android上的Chrome浏览器使用的NodeJS HTTPS。
- 我的VPS运行Apache和首先的NodeJS时间,我的团队建立SSL Apache和所有设备运行正常 - 当时跑的NodeJS与港口3000由于某种原因,我使用的Apache这对于SSL服务器的NodeJS并关闭它阿帕奇(现在的Apache在端口80上运行)
- 我使用此代码用于获取CA.它适用于几乎浏览器和IOS(Safari浏览器)也一样,但它不能在Android上的Chrome浏览器运行,现在它送花儿给人展示我的证书的警告消息,并且防止HTTPS(用红色线)上的NodeJS服务运行,尽管用户可以去页通常这是我的代码获得Apache CA:服务器端:
var app = express(),
options = {
key : fs.readFileSync('/etc/apache2/ssl/thedragoncode.key').toString(),
cert: fs.readFileSync('/etc/apache2/ssl/thedragoncode.crt').toString(),
requestCert: true,
rejectUnauthorized: false
},
https = require('https').createServer(options, app);
...
// This request use for mobile Android device
app.get("/android/", function (req, res, next)
{
res.end("android development");
});
https.listen(443);
回答如下:
此问题似乎没有人了。我已经做这种方式解决了这个问题:http://www.benjiegillam/2012/06/node-dot-js-ssl-certificate-chain/
你只是转换的CoffeeScript给JavaScript,它工作正常我。通过取CA链阵列
评论列表(0)
- 暂无评论