javascript - 使用nodejs发get请求时遇到的一个错误
天蓬老师
天蓬老师 2017-04-17 16:34:18
0
1
421
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
大家讲道理

The https protocol requires setting the file location of the public key and private key.

const options = {
    ...
    key: fs.readFileSync('test/keys/agent-key.pem'),
    cert: fs.readFileSync('test/keys/agent-cert.pem')
};

soonfy

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template