I'm using Puppet 3.7.3 and I observe this strange behavior when using the API to sign a certificate:
==> /var/log/apache.log <==
Jun 28 17:18:07.000000 prod-puppetca apache: 127.0.0.1 prod-puppetca:8140 - - [28/Jun/2015:17:18:03 +0000] "PUT /production/certificate_request/prod-clientbox HTTP/1.1" 200 1582 "-" "python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-46-generic"
==> /var/log/daemon.log <==
Jun 28 17:18:03.000000 prod-puppetca puppet-master[27451]: prod-clientbox has a waiting certificate request
Jun 28 17:18:07.000000 prod-puppetca puppet-master[27451]: Signed certificate request for prod-clientbox
Jun 28 17:18:07.000000 prod-puppetca puppet-master[27451]: Removing file Puppet::SSL::CertificateRequest prod-clientbox at '/var/lib/puppet/ssl/ca/requests/prod-clientbox.pem'
For some reason a single PUT call to `certificate_request/` signs the CSR and then also removes it!
Under normal circumstances (when the CSR does not get removed) I have a follow up API call for `certificate_status/` with {"desired_state":"signed"} passed in. However when the CSR is removed, this no longer works because puppet refuses with the following message:
Cannot sign for host prod-clientbox without a certificate request
Why does the CSR get removed with the same API call that uploads it?
sudo /opt/puppetlabs/bin/puppet resource service puppet
ensure=running enable=true
.To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/658471AFB4DB4129A648119DD8F5E03D%40NewLaptop.
sudo /opt/puppetlabs/bin/puppet
cert list, I get no results.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/BBE0BBEF2DE142A2B4C8630E60E36E0B%40NewLaptop.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAGk8suYJ9bOK%3DmxPmuFQfOUH4LS9sYOgFzuEJ0Dqg4Xmk5BQ3Q%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/LCAuO4Wo_d8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5acc5158-2740-4167-9404-4651ed728bc7%40googlegroups.com.