我正在尝试在EC2上安装puppet enterprise。
puppet服务器似乎工作正常。
/ etc / hosts:
127.0.0.1 puppet
人偶证书列表--all:什么都不显示
在人偶特工上:
/ etc / hosts:
10.113.148.136 ip-10-113-148-136.ec2.internal ip-10-113-148-136 puppet
当我运行“人偶代理--test”时
错误:无法请求证书:从主服务器检索的证书与代理的私钥不匹配。要解决此问题,请从主服务器和代理中删除证书,然后开始运行木偶,这将自动重新生成证书。
在主控上:
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”时,我得到相同的错误消息
还请注意,在网络用户界面中:bla1.example.com显示在“无响应”列表中
[当我运行“人偶代理--server人偶--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主服务器中的私钥FQDN相匹配?我想我遇到了类似的问题。
# puppet cert sign <node>; puppet cert clean <node>
无法从远程服务器检索目录:SSL_CTX_use_PrivateKey:密钥值不匹配
如果更改证书后,从p代理间隔运行(或在使用pkill -SIGUSR1 puppet
强制执行时,如果在系统日志中看到这些错误,请尝试停止/启动the代理。看起来代理似乎在日志中使用了正确的Certificate fingerprint: ...
值,但是该错误可能意味着驻留在内存中的私钥与新的公共证书不匹配。