繁体   English   中英

node.js nano@6.2.0是否可以使用TLS 1.2+连接到Cloudant数据库?

[英]Can the node.js nano@6.2.0 connect with TLS 1.2+ to the Cloudant database?

我们想确认一下即使在2019年6月1日之后,nano@6.2.0是否可以将TLS 1.2+连接到Cloudant数据库。

根据IBM Cloudant公告: https ://www.ibm.com/cloud/blog/announcements/ibm-cloudant-security-update-tls-1-2-and-service-endpoints,从2019年6月1日开始, IBM Cloudant API将需要传输层安全性(TLS)1.2及更高版本。 IBM Cloudant API需要HTTPS,并且当前支持TLS 1.0及更高版本。

IBM Cloud Node-Red Stater(Node.js版本:v8.15.1)使用nano@6.2.0连接到其后端Cloudant数据库来管理Node-Red Flow。 https://www.npmjs.com/package/nano/v/6.2.0

.../nodered-starter../blob/master/index.js
Line 36: storage.init(settings)....
.../nodered-starter../blob/master/couchstorage.js
Line 73-76:
var couchstorage = {
    init: function(_settings) {
        settings = _settings;
        var couchDb = nano(settings.couchUrl);
...settings.couchUrl is like:
   https://username:password@abcd1234-bluemix.cloudant.com

关于IBM Cloud Node-Red-Starter: https : //cloud.ibm.com/catalog/starters/node-red-starter

nodejs-cloudant类似,这将取决于所安装的Node.js和OpenSSL的版本。 它独立于Apache CouchDB Nano的版本。

从2012年3月的1.0.1开始,OpenSSL就支持TLSv1.2 。在此博客中,Node.js 8.15.1中的OpenSSL版本似乎是1.0.2r,因此应该可以正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM