Regenerate compiler certificates
Regenerate compiler certificates to fix a compromised certificate or troubleshoot SSL errors on compilers, or if you recreated your certificate authority.
On your primary server, log in as root, and run the following command. Specify any additional parameters required for your environment and use case.
puppet infrastructure run regenerate_compiler_certificate target=<COMPILER_HOSTNAME>
- If you use DNS alternative names, specify
dns_alt_names
as a comma-separated list of names to add to agent certificates.To ensure naming consistency, if yourpuppet.conf
file includes adns_alt_names
entry, you must include thedns_alt_names
parameter and pass in all alternative names included in the entry when regenerating your agent certificates. - If you recreated your certificate authority, or are otherwise unable to
connect to the compiler with the orchestrator, specify
--use-ssh
and any additional parameters needed to connect over SSH.
Results
The compiler's SSL directory is backed up to
The compiler's SSL directory is backed up to
/etc/puppetlabs/puppet/ssl_bak
, its certificate is regenerated and
signed, a Puppet run completes, and the compiler resumes its
role in your deployment.