OpenLEADR/openleadr-python

Fingerprint Mismatch

Opened this issue · 0 comments

Hi OpenLEADR team,
image
my ven shows the fingerprint but my vtn shows this,
2024-08-28 13:17:26,717 - INFO - Received registration from ven1 with fingerprint None
2024-08-28 13:17:26,718 - INFO - Expected fingerprint for ven1: 78:C4:4B:B0:1E:5C:4D:5A:CC:24
2024-08-28 13:17:26,718 - WARNING - Fingerprint mismatch for ven1: expected 78:C4:4B:B0:1E:5C:4D:5A:CC:24, got None

Why my ven is not transferring the fingerprint.
the problem started when I implemented ven figerprint

client = CustomOpenADRClient(
ven_name='ven1',
vtn_url='http://172.30.209.137:8080/OpenADR2/Simple/2.0b',
vtn_fingerprint='D7:17:4A:6C:82:63:34:F3:F2:45', # Correct VTN fingerprint
cert=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VEN_keys\cert.pem',
key=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VEN_keys\key.pem',
passphrase='2024',
ca_file=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VTN_cert\vtn_cert.pem'
)

up to vtn fingerprint its fine. the code ran without any error. but when I added

cert=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VEN_keys\cert.pem',
key=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VEN_keys\key.pem',
passphrase='2024',
ca_file=r'C:\Users\Sher\Desktop\LEADR_testing\VEN\VTN_cert\vtn_cert.pem'

this problem started, although vtn has ven fingerprint , the ven failed to send its fingerprint so it fails to match.
I double checked certificates and key, everything is fine.