Puppet:无法申请证书

Puppet: Could not request certificate

当我启动 Puppet 代理时出现此错误

Could not request certificate: Could not intern from text/plain: Certname "puppet ca: localhost/localdomain" must not contain unprintable or non-ASCII characters

puppet master和agent版本都是3.8.7

在 master 和 agent /etc/hosts 文件中我添加了这些行:

10.11.22.166 pclient
10.11.22.173 pmaster

我可以互相 ping pclient 和 pmaster。

在木偶大师puppet.conf中我添加了这一行:

[master]
certname = pmaster

在傀儡代理 puppet.conf 文件中,我在 [main] 块中添加了这一行:

server = pmaster

启用8140端口:

iptables -I INPUT -p tcp -m tcp --dport 8140 -j ACCEPT

请帮帮我,我不知道我做错了什么。

您可能想通过 cat -v 运行 一些文件,看看它们是否包含任何不可打印的字符。

您的主机名似乎不正确。 删除 ssl 目录(/var/lib/puppet/ssl)并再次辞职