puppet 遇到 Neither PUB key nor PRIV key:: header too long
最近接触Puppet:
在一台全新的机器上运行puppet agent -t
,得到一下信息:
➜ / puppet agent -t
Info: Creating a new SSL key for docker.1476842591
Error: Could not request certificate: Neither PUB key nor PRIV key:: header too long
Exiting; failed to retrieve certificate and waitforcert is disabled
根据网上的做法,删除本地/var/lib/puppet/ssl
文件夹无效。
agent端,puppet.conf配置如下:
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
environmentpath=/etc/puppet/environments
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
[agent]
server=【master所在域名】
pluginsync = true
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论