/etc/puppetlabs/puppet/node.rb <hostname> execution failed. return SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) error

Problem:
We are trying to add aditional puppet master server. In the new puppet master server while executing /opt/puppetlabs/puppet/node.rb the SSL error will be thrown.

During fact upload occured an exception: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Serving cached ENC: Could not send facts to Foreman: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Unable to read from Cache file: No such file or directory @ rb_sysopen - /opt/puppetlabs/server/data/puppetserver/yaml/foreman/<hostname>.yaml

Expected outcome:
Node details from the foreman server

Foreman and Proxy versions:
Foreman version : 2.0.1
Foreman proxy version : 2.0.1