request({
url: that.url.enterprise,
method: 'POST',
body: builder.buildObject(ops),
agentOptions: {
pfx: fs.readFileSync("apiclient_cert.p12"),
// passphrase: Buffer.from(param.mchid, 'utf8'),
passphrase: param.mchid.toString('binary'),
// passphrase: param.mchid
}
}, function(err, response, body) {
console.log(fs.readFileSync("apiclient_cert.p12"));
console.log(ops.mchid);
console.log(err);
console.log(response);
console.log(body);
// parseString(body, function(err, result) {
// fn(that.parseWXReturnXML(result));
// });
});