【问题标题】:puppet master not signing client certificate木偶大师没有签署客户证书
【发布时间】:2014-07-09 19:58:16
【问题描述】:

puppet cert --list 不返回任何内容。

我的 /etc/hosts 文件在 puppet master 和客户端上:

20.201.110.198 client.example.com client
20.201.110.196 puppet.example.com puppet

在启动 puppet master 时,我得到以下信息,

傀儡师的版本是2.7.25

#puppet master --no-daemonize --debug --verbose
info: Could not find certificate for 'client.example.com'

在启动 puppet 客户端时,我得到以下信息(Puppet 客户端版本也是 2.7.25

puppet agent --server puppet --waitforcert 60 --test --debug  --verbose
notice: Did not receive certificate

【问题讨论】:

  • 代理机上puppet agent --configprint server的输出是什么? - 您的master 节点似乎也认为它的名称是client.example.com。那台机器上facter fqdn 的输出是什么?
  • puppet cert list --all
  • 在 puppet 主服务器中:#puppetca --sign client.example.com 错误:无法呼号:找不到 client.example.com 的证书请求 找不到 client.example 的证书请求.com
  • 这是在客户端 puppet 机器(20.201.110.198)上执行的命令,它的输出:“#puppet agent --configprint server”返回“puppet.example.com”这是在主服务器上执行的命令puppet machine(20.201.110.196) 及其输出:“#puppet cert list --all”返回“+”puppet”(E4:66:56:31:4A:D8:B6:52:F8:C7:90:35 :A6:1B:CB:B7) + "puppet.example.com" (F6:13:CC:E9:D8:5D:0A:E8:63:AD:DC:F8:7D:B4:02:FC) (替代名称:“DNS:puppet”,“DNS:puppet.example.com”)“这再次在主 puppet 机器(20.201.110.196)中执行,其输出:“#facter fqdn”rturns“puppet.example。 com"
  • @FelixFrank ,我已经给出了我的输出,请您查看并回复一些可能的解决方案

标签: puppet


【解决方案1】:

大师在某个时候失去了你的 CSR。从这里开始,最简单的方法可能是在您的代理计算机上生成一个新密钥和 CSR,然后提交并签名。

在代理上,做

  1. rm -r /var/lib/puppet/ssl 删除过时的证书请求数据
  2. puppet agent --test(输出应表明正在生成新的 CSR)

然后应该可以以常规方式在主设备上签署证书。

【讨论】:

    猜你喜欢
    • 2014-09-24
    • 2020-06-12
    • 2013-08-20
    • 1970-01-01
    • 2023-01-15
    • 2015-03-09
    • 2019-10-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多