-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
Pietfried
commented
Oct 11, 2023
•
edited by klemmpnx
Loading
edited by klemmpnx
- added handling for security: A02 (SignCertificate, CertificateSigned)
822cb3f
to
b912304
Compare
a002ef3
to
c2c2d71
Compare
7b686e0
to
d38648e
Compare
There was a problem hiding this 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
lib/ocpp/v201/charge_point.cpp
Outdated
this->send<CertificateSignedResponse>(call_result); | ||
|
||
if (result != ocpp::InstallCertificateResult::Accepted) { | ||
this->security_event_notification_req("InvalidChargingStationCertificate", std::optional<CiString<255>>{}, true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done-> test update: https://github.com/PionixInternal/ocpp-testing/pull/35
lib/ocpp/v201/charge_point.cpp
Outdated
@@ -1968,10 +2115,15 @@ void ChargePoint::handle_trigger_message(Call<TriggerMessageRequest> call) { | |||
} | |||
break; | |||
|
|||
case MessageTriggerEnum::SignChargingStationCertificate: | |||
EVLOG_info << "got SignChargingStationCertificate"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EVLOG_info << "got SignChargingStationCertificate"; |
…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]>
Signed-off-by: Fabian Klemm <[email protected]>
Signed-off-by: Fabian Klemm <[email protected]>
d38648e
to
c22842a
Compare
There was a problem hiding this 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!