Error: Could not find CSR for: domain when using p

2019-08-01 07:03发布

问题:

I'm trying to sign my node (for a puppetmaster) only whatever I do I'm getting the error below:

Error: Could not find CSR for: [domain name]

The node is indeed listed under puppet cert list —all

回答1:

You may need to remove the cert from the puppet directory(generally located in /etc/puppetlabs/puppet/ssl) and re-issue it.

From my experiences, this always works. The Puppet documentation covers this rather well.



回答2:

Even I faced same problem, but resolved by giving complete hostname. Run this first :-
puppet cert list
output :-
"hostname.domainname.com" (SHA256) 2D:A2:4F...B6:9C
After that get the hostname from above output, and give it below :-
puppet cert sign hostname.domainname.com