Skip to content

Conversation

@Pietfried
Copy link
Contributor

@Pietfried Pietfried commented May 31, 2024

Describe your changes

Without this change, a Plug&Charge authorization request failed when the OCSP could not be generated, e.g. because the contract certificate chain did not contain any OCSP extension. Those contract certificates exist in the real world. This commit changes the behavior in case no OCSP data could be generated. If CentralContractValidationAllowed is true, the certificate is send as part of the Authorize.req instead of rejecting the request directly.

Issue ticket number and link

Checklist before requesting a review

…the OCSP could not be generated, e.g. because the contract certificate chain did not contain any OCSP extension. Those contract certificates exist in the real world. This commit changes the behavior in case no OCSP data could be generated. If CentralContractValidationAllowed is true, the certificate is send as part of the Authorize.req instead of rejecting the request directly

Signed-off-by: pietfried <pietgoempel@gmail.com>
@Pietfried Pietfried force-pushed the feature/pnc-authorization-in-case-ocsp-can-not-be-generated branch from d9eff54 to 99e452b Compare May 31, 2024 09:33
if (central_contract_validation_allowed) {
EVLOG_info << "Online: OCSP data could not be generated. Pass contract validation to CSMS";
authorize_req.certificate = certificate.value();
forward_to_csms = true;
Copy link
Contributor

@mennodegraaf mennodegraaf Jun 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistency: in the OCPP2.0.1 implementation this is called forwarded_to_csms. Not sure if this requires adjustment.

Copy link
Contributor

@mennodegraaf mennodegraaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look very straightforward

@Pietfried Pietfried merged commit c89460c into main Jun 3, 2024
@Pietfried Pietfried deleted the feature/pnc-authorization-in-case-ocsp-can-not-be-generated branch June 3, 2024 11:49
ghost pushed a commit to US-JOET/libocpp that referenced this pull request Jun 12, 2024
…the OCSP could not be generated, e.g. because the contract certificate chain did not contain any OCSP extension. Those contract certificates exist in the real world. This commit changes the behavior in case no OCSP data could be generated. If CentralContractValidationAllowed is true, the certificate is send as part of the Authorize.req instead of rejecting the request directly (EVerest#652)

Signed-off-by: pietfried <pietgoempel@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants