繁体   English   中英

无法从Puppet主服务器检索Puppet代理SSL证书

[英]Unable to retrieve Puppet agent SSL certificate from Puppet master

我已经配置了Puppet Master-Agent设置(操作系统:Ubuntu)。 两者都可以互相ping / ssh。 DNS设置正确。 当执行'puppet agent -t'生成证书时,Agent抛出错误时,Master可以生成新的CA和证书。

我在解决方案中收到错误,并且按照建议执行并进一步收到:

Puppet代理SSL错误的屏幕截图

Exiting; failed to retrieve certificate and waitforcert is disabled

请帮助解决这一问题。 以下是/etc/puppet/puppet.conf(与Master-Agent相同)

#Settings in [main] are used if a more specific section does not set a value.
[main]
    certname = puppetmaster01.example.com
    logdir=/var/log/puppet
    vardir=/var/lib/puppet
    basemodulepath = /etc/puppetlabs/puppet/environments/production/modules:/opt/puppet/share/puppet/modules
    ssldir=/var/lib/puppet/ssl
    rundir=/var/run/puppet
    factpath=$vardir/lib/facter
    server = puppetmaster01.example.com
    user = puppet
    group = puppet
    archive_files = true
    archive_file_server = puppetmaster01.example.com

[master]
# This section is used by the Puppet master and Puppet cert applications.
    dns_alt_names = puppet,puppet.example.com,puppetmaster01,puppetmaster01.example.com,puppetagent01,puppetagent01.example.com
    certname = puppetmaster01.example.com
    reports = http,puppetdb
    reporturl = https://localhost:443/reports/upload
    node_terminus = exec
    external_nodes = /etc/puppetlabs/puppet-dashboard/external_node
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    storeconfigs_backend = puppetdb
    storeconfigs = true
    autosign = true

# This section is used by the Puppet agent application.
[agent]
    report = true
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    graph = true
    pluginsync = true
    environment = production

在人偶主控/代理部署中以及从文档中,管理员将需要在人偶主控上签署客户端的证书。 你在木偶大师上签署了证书吗?

取决于您所使用的木偶版本:尝试运行sudo puppetserver ca sign fullnameOFhost.something.comsudo puppet cert sign <name of host>

您可以通过再次运行sudo puppet cert listsudo puppetserver ca list来查看需要签名的优秀客户端证书,具体取决于版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM