繁体   English   中英

傀儡企业 ssl 证书错误

[英]puppet enterprise ssl cert error

我正在尝试在 EC2 上安装 puppet 企业。

傀儡服务器似乎工作正常。

/etc/hosts :

127.0.0.1 puppet

puppet cert list --all :不显示任何内容

在傀儡代理上

/etc/hosts :

10.113.148.136     ip-10-113-148-136.ec2.internal     ip-10-113-148-136      puppet

当我运行“puppet agent --test”

错误:无法请求证书:从主服务器检索的证书与代理的私钥不匹配。 要解决此问题,请从 master 和 agent 中删除证书,然后启动 puppet 运行,这将自动重新生成证书。

在主人身上:

puppet cert clean bla1.example.com

关于代理:

rm -f /home/ubuntu/.puppet/ssl/certs/bla1.example.com.pem
puppet agent -t

当我在主服务器上运行此命令时。 我收到错误:

Error: Could not find a serial number for bla1.example.com

当我运行“puppet agent -t”时,我收到相同的错误消息

另请注意,在 web-ui 中:bla1.example.com 显示在“无响应”列表中

当我运行“puppet agent --server puppet --waitforcert 30 --test”时,我收到相同的错误消息,然后收到此消息:

Info: Retrieving plugin
Error: /File[/home/ubuntu/.puppet/var/lib]: Failed to generate additional resources     using 'eval_generate': SSL_CTX_use_PrivateKey:: key values mismatch
Error: /File[/home/ubuntu/.puppet/var/lib]: Could not evaluate: SSL_CTX_use_PrivateKey::             key values mismatch Could not retrieve file metadata for puppet://puppet/plugins:     SSL_CTX_use_PrivateKey:: key values mismatch
Error: Could not retrieve catalog from remote server: SSL_CTX_use_PrivateKey:: key     values mismatch
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: SSL_CTX_use_PrivateKey:: key values mismatch

在 puppet.conf 中: server=FQDN代理 puppet.conf 中的 FQDN 是否与/var/lib/puppet/ssl/private_keys/中的 puppet master 中的私钥 FQDN 匹配? 我想我遇到了类似的问题。

# puppet cert sign <node>; puppet cert clean <node>

无法从远程服务器检索目录:SSL_CTX_use_PrivateKey:键值不匹配

如果您在更改证书后从 puppet 代理间隔运行(或强制使用pkill -SIGUSR1 puppet )在系统日志中看到这些错误,请尝试停止/启动 puppet 代理。 看起来代理正在使用正确的Certificate fingerprint: ...日志中的值,但该错误可能意味着驻留在内存中的私钥与新的公共证书不匹配。

暂无
暂无

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

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