Hi Iván - I think there are a couple of approaches that could work for you.
1 - you could continue to provision as you do today, but include a step in the shut-down that cleans a certificate. It is possible to add a rule to the auth.conf file that permits access to puppet's HTTPS endpoints which allows a node to delete its own certificate. There's a blog post about it here:
But I would suggest doing something a little nicer with the auth.conf rules, like this for /etc/puppetlabs/puppetserver/conf.d/auth.conf
{
"allow" : "$1",
"match-request" : {
"method" : "delete",
"path" : "/puppet-ca/v1/certificate_status/([^/]+)$",
"query-params" : {},
"type" : "path"
},
"name" : "nodes deleting their own certs",
"sort-order" : 500
}
2 - You can indeed re-use the same cert and key for all your nodes. I have used this setup in production and it works pretty well but it is not a common best practice. I have a write-up of how to do it here:
https://gist.github.com/ahpook/1182243 but it is probably a bit out of date now.
I would suggest going to option #1 but either could work for you. hope this helps!
--eric0