]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp): populate signingMethod field and add SigningMethodEnumType enum
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 18:20:34 +0000 (20:20 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 18:20:34 +0000 (20:20 +0200)
commit90bb3ab86e864f29c4dbc34749c8725b6c8ed789
treefcb869139fb73c8b963df802a0a80ffa3bfe7791
parent7d69543150e590831d93769443cd82d457c825bc
fix(ocpp): populate signingMethod field and add SigningMethodEnumType enum

- Fix signingMethod being empty string in SignedMeterValueType payload
- Add SigningMethodEnumType enum per OCA Application Note Table 12 and
  OCPP 2.1 Appendix 7.4 with all 7 standardized values
- Propagate FiscalMetering.SigningMethod config variable to the signed
  meter data generator with fallback to ECDSA-secp256r1-SHA256
- Add OCPP 1.6 vendor key SigningMethod and read it in
  readSigningConfigForConnector
- Add MeterPublicKey and SigningMethod mappings to OCPP2_PARAMETER_KEY_MAP
- Use SigningMethodEnumType in all interfaces and type definitions
- Update README vendor-specific keys documentation
18 files changed:
README.md
src/charging-station/ConfigurationKeyUtils.ts
src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts
src/charging-station/ocpp/2.0/OCPP20RequestBuilders.ts
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts
src/charging-station/ocpp/OCPPServiceUtils.ts
src/charging-station/ocpp/OCPPSignedMeterDataGenerator.ts
src/charging-station/ocpp/OCPPSignedMeterValueUtils.ts
src/types/index.ts
src/types/ocpp/1.6/Configuration.ts
src/types/ocpp/1.6/MeterValues.ts
src/types/ocpp/2.0/MeterValues.ts
src/types/ocpp/Configuration.ts
tests/charging-station/ocpp/1.6/OCPP16SignedMeterValues.test.ts
tests/charging-station/ocpp/2.0/OCPP20SignedMeterValues.test.ts
tests/charging-station/ocpp/OCPPSignedMeterDataGenerator.test.ts
tests/types/ocpp/1.6/MeterValues.test.ts
tests/types/ocpp/1.6/OCPP16VendorParametersKey.test.ts