I used different authentication key in my server and client application. Server still is able to decrypt and authenticate the requests. However if I change the Security level just to AUTHENTICATION, it is working correctly and giving an exception.
Authentication key is used to encrypt data.
Your authentication key must be same on client and server.
If that is different communication is not working.
At present for POC purpose I wanted to test if I use wrong authentication key, will the GXDLMSServerExample2 be throwing an exception. It does throw in case i set the security level to AUTHENTICATION but it doesnt do so in case secruity level is set to AUTHENTICATION_ENCRYPTION.
Authentication encryption not working
Hi,
Authentication key is used to encrypt data.
Your authentication key must be same on client and server.
If that is different communication is not working.
BR,
Mikko
Hi,
Hi,
At present for POC purpose I wanted to test if I use wrong authentication key, will the GXDLMSServerExample2 be throwing an exception. It does throw in case i set the security level to AUTHENTICATION but it doesnt do so in case secruity level is set to AUTHENTICATION_ENCRYPTION.
Thanks
Yatin
Authentication encryption not working
Hi,
Your secure settings are not correct. Decrypted data is wrong. Check that BlockCipherKey and AuthenticationKey are correct.
BR,
Mikko