Skip to content

Instantly share code, notes, and snippets.

@npwalker
Last active January 20, 2023 11:44
Show Gist options
  • Save npwalker/8741257 to your computer and use it in GitHub Desktop.
Save npwalker/8741257 to your computer and use it in GitHub Desktop.
How to regenerate a puppet agent certificate
  1. On the master: puppet cert clean <agent_certname>
  2. On the agent: mv /etc/puppetlabs/puppet/ssl/ /etc/puppetlabs/puppet/ssl_bak
  • Never do this if you are trying to regenerate the cert for the agent on the master. Instead you would need to delete specific certs
  1. On the agent: puppet agent -t
  2. On the master: puppet cert sign <agent_certname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment