【发布时间】:2019-11-23 17:30:52
【问题描述】:
我一直在关注这两个资源来生成我的证书:
https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html#tls_operation_modes
https://community.cloudera.com/t5/Community-Articles/Setting-Up-a-Secure-NiFi-to-Integrate-with-a-Secure-NiFi/ta-p/247765
两者看起来都非常简单。请注意,我在远程服务器(无域)上运行 NiFi 1.10.0,使用 java8 的 Debian 9(新实例)。我没有与服务器关联的域名,只是一个公共 IP 地址。
在服务器上,我尝试使用以下命令生成证书:
bin/tls-toolkit.sh standalone -n 'localhost' -C 'CN=sys_admin,OU=NIFI'
bin/tls-toolkit.sh standalone -n '0.0.0.0' -C 'CN=sys_admin,OU=NIFI'
bin/tls-toolkit.sh standalone -n 'my.server.ip.address' -C 'CN=sys_admin,OU=NIFI'
bin/tls-toolkit.sh standalone -n 'my.server.ip.address:9443' -C 'CN=sys_admin,OU=NIFI'
我相应地更新了我的授权人文件。但是我总是收到NET::ERR_CERT_REVOKED 错误。
跑步:
sudo openssl s_client -connect 0.0.0.0:9443 -showcerts -state -debug
我得到错误:
验证错误:证书链中的自签名证书
【问题讨论】:
-
尝试使用一些自定义域而不是 ip。
-
@Lamanus 但我没有可用的自定义域:/
-
也许修改你的主机文件?
标签: openssl ssl-certificate apache-nifi