Renewal of certificate with status "GENERATED" #257
-
Hi,
On above page you have description: I am wondering how we can automate this I mean we would like to have a scenario: Options we can see:
We do not want to monitor certificate expiration and then send a config to change statuses for certificates. We would like to make it working automatically (hopefully it is possible). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
What is your service using? I would expect a service to use one of the APIs of EJBCA. Most APIs have built in renewal support, i.e. CMP have key update, SCEP has renewal, EST have renewal. Using REST or WS, manual status swapping is not needed, but then renewal is performed by an RA so not the same use case. Status "generated" is there in order to make the enrollment code a one-time code. Otherwise enrollment/renewal depends on the secrecy of the enrollment code, which is not the most secure way. You can configure EJBCA to not change NEW->GENERATED in several ways. One is "number of allowed request" in the EE profile, and the other is to uncheck "finish user" in the CA setting. In the last case status will always remain new. My generic recommendation is to use an API that has built in (standardized) renewal support. |
Beta Was this translation helpful? Give feedback.
-
I'm a bit confused though. If you use CMP in RA mode you do not have to bother about end entities at all. That is all handled in the background. No need to create an end entity, no need to reset status. Just use CMP commands for enrollment and renewal, as documented here. You can find example commands using "openssl cmp" for various example use cases. |
Beta Was this translation helpful? Give feedback.
What is your service using? I would expect a service to use one of the APIs of EJBCA. Most APIs have built in renewal support, i.e. CMP have key update, SCEP has renewal, EST have renewal. Using REST or WS, manual status swapping is not needed, but then renewal is performed by an RA so not the same use case.
Status "generated" is there in order to make the enrollment code a one-time code. Otherwise enrollment/renewal depends on the secrecy of the enrollment code, which is not the most secure way. You can configure EJBCA to not change NEW->GENERATED in several ways. One is "number of allowed request" in the EE profile, and the other is to uncheck "finish user" in the CA setting. In the las…