Add support for certificate renewal via SCEP #3413
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
this is the last PR that I'm bringing here for your kind consideration. I've implemented this for a client and successfully tested it using a Cisco client.
This PR adds support for renewing a certificate via the SCEP protocol (the scep servlet). The renewal process tries to follow the new SCEP draft and has the following assumptions:
17
, i.e. it is aRenewalReq
message type19
=PKCSReq
) but the SCEP message is signed with a cert issued by this CA, not with a self-signed cerfiticateSignerInfo
structure of the SCEP messageRENEWAL_REQUEST
(see thepostRenewalRequest
method) and typically returns it to the client immediatelyThe feature can be switched on in the
CS.cfg
configuration file using:(by default this is false, i.e. renewal support is switched off).
SCEP message integrity checking
During implementing this I noticed that the integrity of the SCEP messages coming from the clients is not verified in the
verifyRequest
method in the servlet. Thus, I added an implementation of this verification as it is an essential part of the renewal process (the client is not authenticated via external means, e.g. a password, but only via previous certificate - we must make sure that the client possesses the private key for this signing cert). The SCEP verification works as follows (see theverify
method inCRSPKIMessage
):pkcs7
packageThus, in case of cert renewal, we can consider such a message as verified.
Please don't hesitate to contact me if you have any questions or need further work on this. Thanks!