2014-06-23 43 views
0

puppet cert --list不返回任何內容。木偶大師未簽名客戶端證書

/etc/hosts文件上都傀儡師和客戶端:

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

雖然開始木偶大師,我得到以下,

木偶大師的版本是2.7.25

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

雖然開始puppet客戶端,我得到以下(木偶客戶端版本也是2.7.25

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

在代理機器上,'puppet agent --configprint server'的輸出是什麼? - 看起來你的'master'節點認爲它的名字是'client.example.com'。該機器上的facter fqdn的輸出是什麼? –

+1

'puppet cert list --all' –

+0

在木偶主服務器中:#puppetca --sign client.example.com err:無法呼叫標誌:無法找到client.example.com的證書請求 無法找到證書請求for client.example.com – Ranjith

回答

3

主丟了CSR在某些時候。從這裏最簡單的方法可能是在您的代理機器上生成一個新的密鑰和CSR,並提交併簽名。

在代理,做

  1. rm -r /var/lib/puppet/ssl擺脫過時的證書請求數據的
  2. puppet agent --test(輸出應指明所產生的新的CSR)

應該再有可能簽署主人以正規方式頒發證書。

+0

Hurray !!!!哇...這對我有用!謝謝你的幫助菲利克斯弗蘭克 – Ranjith

+0

偉大 - 隨時upvote和接受;-) –