ocpp-rpc icon indicating copy to clipboard operation
ocpp-rpc copied to clipboard

Add support for JWS signed messages

Open mikuso opened this issue 3 years ago • 3 comments
trafficstars

Section 7.1 of the OCPP2.0.1J specification describes a "signed message format" which extends the RPC framework.

Support for this could be added with an option to the client.call() method.

e.g.

await client.call('MeterValues', {/** params **/}, { sign: true });`

mikuso avatar Apr 27 '22 23:04 mikuso

Hi @mikuso , this enhancement is yet to be done?

ArvindKarthi avatar Apr 26 '23 08:04 ArvindKarthi

Yes. I feel like the spec isn't clear enough in how this should be implemented that I don't have confidence in my ability to implement it correctly. The biggest hurdle with this one is lack of a concrete example in the spec. I have asked the OCA for an example but didn't get any response.

I suppose my biggest worry is that I would accidentally release an implementation which wasn't compatible with other implementations.

Do you know of any other implementations that support this feature? It might be useful as a basis for me to test against.

mikuso avatar Apr 26 '23 09:04 mikuso

Yes, your point is understandable. Currently I have not seen other implementations with this feature but let me check, it'll be a good security feature.

ArvindKarthi avatar Apr 26 '23 09:04 ArvindKarthi