Puppet unable to get local issuer certificate for /CN=


hi all,

I get below error on the agent client:

Error: Could not request certificate: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=puppetserver]

I have already added server = puppetserver to the puppet.conf but I still get the same above error.

What I did: I delete the content of ssl on the server and client. I run puppet agent -t on the client to connect to the server and I signed the client key, so far works the puppet server and client together.

After that when I run puppet agent -t I get above error.

Can someone help here.