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

If MO Root is not found it crashes the application #127

Closed
tropxy opened this issue Sep 7, 2022 · 3 comments · Fixed by #133
Closed

If MO Root is not found it crashes the application #127

tropxy opened this issue Sep 7, 2022 · 3 comments · Fixed by #133

Comments

@tropxy
Copy link
Contributor

tropxy commented Sep 7, 2022

DEBUG    2022-09-07 09:06:35,655 - mqtt_api (303): Sending {"id":"5bde023e-40a9-41bb-8499-80dcf20a4591","type":"update","name":"iso15118_message","data":{"evse_id":"DE*SWT*E123456789","message_type":"Request","message_name":"PaymentServiceSelectionReq","json_payload":{"V2G_Message":{"Body":{"PaymentServiceSelectionReq":{"SelectedPaymentOption":"Contract","SelectedServiceList":{"SelectedService":[{"ServiceID":1}]}}},"Header":{"SessionID":"D24E49E01843440E"}}},"exi_payload":"809802349392780610d1039130001280"}} to topic Topics.ISO15118_OCPP
ERROR    2022-09-07 09:06:35,669 - iso15118.shared.utils (51): [Errno 2] No such file or directory: <CertPath.MO_ROOT_DER: '/extra/iso15118_2/certs/moRootCACert.der'>
Traceback (most recent call last):
  File "iso15118/shared/utils.py", line 49, in wait_for_tasks
  File "iso15118/shared/comm_session.py", line 467, in rcv_loop
  File "iso15118/shared/comm_session.py", line 222, in process_message
  File "iso15118/secc/states/iso15118_2_states.py", line 499, in process_message
  File "iso15118/secc/states/iso15118_2_states.py", line 879, in process_message
  File "iso15118/shared/security.py", line 333, in load_cert
FileNotFoundError: [Errno 2] No such file or directory: <CertPath.MO_ROOT_DER: '/extra/iso15118_2/certs/moRootCACert.der'>
DEBUG    2022-09-07 09:06:35,741 - mqtt_api (31): Trying to open the path: /extra/iso15118_service/mqtt_api/schemas/Iso15118MessageUpdate.json
DEBUG    2022-09-07 09:06:35,849 - mqtt_api (303): Sending {"id":"cf6eb61a-1272-43b1-a1b2-dfa738634280","type":"update","name":"iso15118_message","data":{"evse_id":"DE*SWT*E123456789","message_type":"Response","message_name":"PaymentServiceSelectionRes","json_payload":{"V2G_Message":{"Body":{"PaymentServiceSelectionRes":{"ResponseCode":"OK"}},"Header":{"SessionID":"D24E49E01843440E"}}},"exi_payload":"809802349392780610d103914000"}} to topic Topics.ISO15118_OCPP

The MO root is not mandatory to be used to verify the certificates as we may not have it, so we should try to get the file, but if is not available, we shall move on and proceed

@shalinnijel2
Copy link
Contributor

I guess something went wrong with the attachment upload - it says "not found" when I click on it...

@tropxy
Copy link
Contributor Author

tropxy commented Sep 8, 2022

@tropxy
Copy link
Contributor Author

tropxy commented Sep 8, 2022

I guess something went wrong with the attachment upload - it says "not found" when I click on it...

now should work ;)

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 a pull request may close this issue.

2 participants