[英]node.js client with TLS1.2 support
I want to write an HTTPS Client with TLS 1.2 support.我想编写一个支持 TLS 1.2 的 HTTPS 客户端。 How to enable this with my code (but default it is using TLS 1.0).
如何使用我的代码启用此功能(但默认使用 TLS 1.0)。
var https = require('https');
var util = require('util');
var fs = require('fs');
var options ={host: '192.168.1.85',port: 443,method: 'POST',
secureProtocol:'TLSv1_method'};
var request = https.request(options,responsehandle);
request.send()
I am using nodejs version v0.10.3我正在使用 nodejs 版本 v0.10.3
Based on some research I did both on Node.js documentation and SO, this sources might be useful for resolving your question.根据我对 Node.js 文档和 SO 所做的一些研究,这些来源可能对解决您的问题很有用。 Both, in sort of a mix, can achieve what you want to do.
两者混合在一起,可以实现您想要做的事情。
Node.js HTTPS Documentation Node.js HTTPS 文档
Node.js TLS Documentation Node.js TLS 文档
More into the specific issue, i found this question which is the same yours... node js tls1.2 and authentication更多关于具体问题,我发现这个问题与你的相同...... node js tls1.2 and authentication
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.