[root@wazuh-manager ~]#puppet agent -t
Info: Caching certificate for ca
Info: csr_attributes file loading from /etc/puppetlabs/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for wazuh-manager
Info: Certificate Request fingerprint (SHA256): 2D:EA:DC:6C:9D:30:65:E8:9E:B4:C2:8D:90:DC:EE:13:C3:37:A8:AA:C7:E3:E0:AF:1B:E1:D0:AA:89:E3:DE:0A
Info: Caching certificate for ca
Exiting; no certificate found and waitforcert is disabled
[root@autodeploy manifests]# puppet cert list
Warning: `puppet cert` is deprecated and will be removed in a future release.
(location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')
"wazuh-manager" (SHA256) 2D:EA:DC:6C:9D:30:65:E8:9E:B4:C2:8D:90:DC:EE:13:C3:37:A8:AA:C7:E3:E0:AF:1B:E1:D0:AA:89:E3:DE:0A
使用puppet cert sign 主机名称就可以批准(确认)证书的安全性和有效性。
[root@autodeploy manifests]# puppet cert sign wazuh-manager
Warning: `puppet cert` is deprecated and will be removed in a future release.
(location: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application.rb:370:in `run')
Signing Certificate Request for:
"wazuh-manager" (SHA256) 2D:EA:DC:6C:9D:30:65:E8:9E:B4:C2:8D:90:DC:EE:13:C3:37:A8:AA:C7:E3:E0:AF:1B:E1:D0:AA:89:E3:DE:0A
Notice: Signed certificate request for wazuh-manager
Notice: Removing file Puppet::SSL::CertificateRequest wazuh-manager at '/etc/puppetlabs/puppet/ssl/ca/requests/wazuh-manager.pem'
再次在wazuh管理端服务器上面使用命令,就可以看到安装任务正在运行。
[root@wazuh-manager ~]# puppet agent -t
Info: Caching certificate for wazuh-manager
Info: Caching certificate_revocation_list for ca
Info: Caching certificate for wazuh-manager
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
...........................