Отправить запрос на веб-сервер tls 1.2 в узле мыло
Мне нужно отправить запрос на веб-сервер, который является TLS 1.2 в мыло узла, есть идеи, как этого добиться?
1 ответ
Вы должны установить secureOptions с константой в методе ClientSSLSecurity.
var constants = require('constants');
client.setSecurity(new soap.ClientSSLSecurity(
'/path/to/key',
'/path/to/cert',
'/path/to/ca-cert',
{
strictSSL: true,
rejectUnauthorized: false,
hostname: 'some-hostname',
secureOptions: constants.SSL_OP_NO_TLSv1_2,
forever: true,
},
));