diff --git a/lib/ocpp/v201/charge_point.cpp b/lib/ocpp/v201/charge_point.cpp index aa189ab89..c879f4da1 100644 --- a/lib/ocpp/v201/charge_point.cpp +++ b/lib/ocpp/v201/charge_point.cpp @@ -3597,13 +3597,13 @@ bool ChargePoint::should_reject_certificate_install(InstallCertificateUseEnum ce switch (cert_type) { case InstallCertificateUseEnum::CSMSRootCertificate: return !this->device_model - .get_optional_value( + ->get_optional_value( ControllerComponentVariables::AllowCSMSRootCertificateInstallWhenLowSecurityProfile) .value_or(true); case InstallCertificateUseEnum::ManufacturerRootCertificate: return !this->device_model - .get_optional_value( + ->get_optional_value( ControllerComponentVariables::AllowManufacturerRootCertificateInstallWhenLowSecurityProfile) .value_or(true); default: