【问题标题】:Connect to Elasticsearch with a .p12 certificate and a password使用 .p12 证书和密码连接到 Elasticsearch
【发布时间】:2021-07-24 13:28:53
【问题描述】:

我想用 Nodejs 连接到 Elasticsearch 服务器。作为先决条件,我已收到 .p12 证书和密码,但我不知道如何使用此凭据新建客户端对象。在node.js official documentation 中使用了.pem 文件并且没有密码。如何使用 nodejs Elasticsearch 库实现这一点?

【问题讨论】:

    标签: javascript node.js elasticsearch ssl certificate


    【解决方案1】:

    我找到了选项:

    1. 将 .p12 转换为 .pem 文件see the details
    2. 使用密码see the details读取.p12文件

    【讨论】:

      猜你喜欢
      • 2014-08-13
      • 1970-01-01
      • 2011-10-23
      • 2011-01-12
      • 1970-01-01
      • 1970-01-01
      • 2021-10-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多