Adding puppet-master to Foreman

Hi, i've 2 VM's, one for puppet-master and other to foreman. I want foreman
act like ENC.


Forem can't found puppet-master, and puppet-master can't send facts to
foreman, error:

Could not send facts to Foreman: SSL_connect returned=1 errno=0
state=SSLv3 read server certificate B: certificate verify failed

How can I solve this?