Install Windows agents using a manually-transferred certificate
If you need to perform a secure installation on Windows nodes, you can manually transfer the primary server CA certificate to any Windows machines you want to install agents on, and then run a variation of the agent install script against that cert.
- Transfer the CA certificate:
- On the machine where you want to install the agent, create this
directory:
C:\ProgramData\PuppetLabs\puppet\etc\ssl\certs\
- On the primary server, navigate to:
/etc/puppetlabs/puppet/ssl/certs/
- Copy
ca.pem
to thecerts
directory you created on the agent node.
- On the machine where you want to install the agent, create this
directory:
- Transfer the agent install script:
- On the primary server, navigate to:
/opt/puppetlabs/server/data/packages/public/
- Copy
install.ps1
to any accessible local directory on the agent node.
- On the primary server, navigate to:
- In an administrative PowerShell window, run the
install script with the
-UsePuppetCA
flag:.\install.ps1 -UsePuppetCA
- Run
puppet agent -t
to add the node to the node inventory and generate the CSR. - Accept the CSR as explained in Managing certificate signing requests.