Ask Your Question
1

Got the following error "certificate is not yet valid for /CN=Puppet CA: " when doing a puppet run after registering a client with the puppet master.

asked 2015-01-08 07:45:28 -0500

kizurazgubai gravatar image

Hi everyone

I have a puppet client node whose date/time is persistently set in the past for stress test purposes. Unfortunately this time precedes the "NOT BEFORE" time validity parameter of the CA certificate which is used to sign the client certificate. I can not move the date forward on the client node, and I have hundreds of other clients using the puppet master, so I cannot regenerate the CA certificate with new start and end dates. Is there a way to sign the client CSR such that the client will not fail to do a puppet run because the dates of the CA cert of the puppet master fall after the current set date of the puppet client?

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-02-09 01:20:27 -0500

joshc gravatar image

The puppet agent will reject the CA's cert if its not_before time is more than 5 minutes in the future (relative to the agent's time). See https://github.com/puppetlabs/puppet/... . This is not currently configurable, but you could edit the code on the agent to allow for greater clock skew.

edit flag offensive delete link more
0

answered 2015-01-08 19:27:08 -0500

GregLarkin gravatar image

I didn't realize that's what you were trying to do when I answered your previous question. As far as I know, the only way to do what you want is regenerate the CA certificate with the dates you want (cf. http://stackoverflow.com/questions/6296016/openssl-explicitly-set-start-end-date-using-openssl-req) and then regenerate all of the client certificates, following this process: https://docs.puppetlabs.com/puppet/3.7/reference/sslregeneratecertificates.html

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-01-08 07:45:28 -0500

Seen: 2,473 times

Last updated: Feb 09 '15