0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

puppetmasterのCAが期限切れの対応

Last updated at Posted at 2016-06-30

参考

エラー

puppetclientにて実施
sudo puppet agent --test --noop

info: Not using expired certificate for ca from cache; expired

err.png

puppetmasterにて実施
% sudo puppet cert --list --all
(certificate has expired)
- server.com (FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF:FF) (certificate has expired)

対応

puppet master

puppetmasterにて実施
mv /var/lib/puppet/ssl /var/lib/puppet/ssl.bak.`date -I`
puppetmasterサービスrestart
/sbin/service puppetmaster restart

puppet client

puppetclientにて実施
mv /var/lib/puppet/ssl /var/lib/puppet/ssl.bak.`date -I`
puppetサービスrestart
/sbin/service puppet restart

puppet client で使用するメッセージダイジェスト設定

puppet client が 2系かつCentOS6の時必要。

sudo /usr/bin/puppet agent --server server.com --test --noop

Could not request certificate: unknown message digest algorithm
このエラーが発生する原因はopensslのバージョンがあがったせいです
puppet3.0はSHA256を使用するようになっています

mv /etc/pki/tls/legacy-settings /etc/pki/tls/legacy-settings.bak.`date -I`

echo "LegacySigningMDs md5" >> /etc/pki/tls/legacy-settings

puppet master

signする
sudo puppet cert --list --all
sudo puppet cert --sign client.com
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?