Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPP201: SignCertificate and CertificateSigned #212

Merged
merged 7 commits into from
Nov 9, 2023

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented Oct 11, 2023

  • added handling for security: A02 (SignCertificate, CertificateSigned)

@Pietfried Pietfried force-pushed the pg-ocpp201-cert-handling branch from 822cb3f to b912304 Compare October 12, 2023 19:53
@klemmpnx klemmpnx force-pushed the pg-ocpp201-cert-handling branch 2 times, most recently from a002ef3 to c2c2d71 Compare October 31, 2023 10:24
@klemmpnx klemmpnx force-pushed the pg-ocpp201-cert-handling branch 2 times, most recently from 7b686e0 to d38648e Compare November 6, 2023 10:06
@klemmpnx klemmpnx marked this pull request as ready for review November 7, 2023 15:08
Copy link
Contributor Author

@Pietfried Pietfried left a comment

Choose a reason for hiding this comment

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

Looks like I cant Approve / Request changes because I opened this PR

this->send<CertificateSignedResponse>(call_result);

if (result != ocpp::InstallCertificateResult::Accepted) {
this->security_event_notification_req("InvalidChargingStationCertificate", std::optional<CiString<255>>{}, true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
this->security_event_notification_req("InvalidChargingStationCertificate", std::optional<CiString<255>>{}, true,
this->security_event_notification_req("InvalidChargingStationCertificate", ocpp::conversions::install_certificate_result_to_string(result), true,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

note that tests need to be adjusted when this is applied

Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -1968,10 +2115,15 @@ void ChargePoint::handle_trigger_message(Call<TriggerMessageRequest> call) {
}
break;

case MessageTriggerEnum::SignChargingStationCertificate:
EVLOG_info << "got SignChargingStationCertificate";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
EVLOG_info << "got SignChargingStationCertificate";

Pietfried and others added 7 commits November 9, 2023 14:08
…omponent vars

* added handling for security: a02, a03 and a04

Signed-off-by: pietfried <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
@klemmpnx klemmpnx force-pushed the pg-ocpp201-cert-handling branch from d38648e to c22842a Compare November 9, 2023 13:23
Copy link
Contributor

@klemmpnx klemmpnx left a comment

Choose a reason for hiding this comment

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

rebased and adapted; pls check again / maybe run updated tests (pr: https://github.com/PionixInternal/ocpp-testing/pull/35) - but for me good to merge!

@klemmpnx klemmpnx merged commit 0846082 into main Nov 9, 2023
2 of 3 checks passed
@klemmpnx klemmpnx deleted the pg-ocpp201-cert-handling branch November 9, 2023 13:53
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.

2 participants