I am following the below procedure.
ot@puppet-client:/etc/puppet# puppet agent --server puppet-master.xxx.com --waitforcert 60 --test
Info: Creating a new SSL key for puppet-client.xxx.com
Info: Caching certificate for ca
Info: csr_attributes file loading from /etc/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for puppet-client.xxx.com
Info: Certificate Request fingerprint (SHA256): 13:AB:81:61:4A:31:5A:02:B5:A2:E1:75:F4:82:07:D7:E6:66:EE:F4:FF:02:F9:D1:D5:C2:B9:29:EB:D5:A3:A0
Info: Caching certificate for ca
Notice: Did not receive certificate
Notice: Did not receive certificate
Info: Caching certificate for puppet-client.xxx.com
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local]
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local]
Error: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local] Could not retrieve file metadata for puppet://puppet-master.
xxx.com/plugins: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local]
Error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain for /CN=Puppet CA: puppet-master.xxx.local]