【发布时间】:2011-04-05 05:05:25
【问题描述】:
节点0.2.6方式:
var credentials = crypto.createCredentials({ "key": SSLKey, "cert": SSLCert, "ca": Ca, "password": SSLKeyPass })
var client = http.createClient(apiPort, host, true, credentials)
node 0.4 way:
var options = {
host: apiHost,
port: apiPort,
method: 'GET',
path: uri,
headers: {host: host},
key:SSLKey,
cert:SSLCert,
ca:Ca,
password:SSLKeyPass
}
var request = https.request(options, function (response) {
如您所见,需要密码,我不知道密码应该在节点 0.4 中的什么位置。
SSLKeyPass 在节点 0.4 上的什么位置?
【问题讨论】: