Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. HLS ECDSA Authorization

HLS ECDSA Authorization

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By VitalyP , 7 April, 2021
Forums
Gurux.DLMS

Hello,

For HLS ECDSA Authorization defined, that CtoS string (transferred in CallingAuthenticationValue of AARQ) have to be 32..64 bytes long.
While Gurux send only 16 bytes.

1: 00 01 00 01 00 01 00 4C 60 4A A1 09 06 07 60 85 74 05 08 01 01 A6 0A 04 08 45 4D 52 07 00 00 00 02 8A 02 07 80 8B 07 60 85 74 05 08 02 07 AC 12 80 10 51 1E 62 66 00 20 00 16 79 74 45 0D 0B 14 03 29 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 60 00 1D 01 00
<WRAPPER len="54" >
<TargetAddress Value="1" />
<SourceAddress Value="1" />
<PDU>
<AssociationRequest>
<ApplicationContextName Value="LN" />
<CallingAPTitle Value="454D520700000002" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighECDSA" />
<CallingAuthentication Value="511E6266002000167974450D0B140329" />
<InitiateRequest>
<ProposedDlmsVersionNumber Value="06" />
<ProposedConformance>
<ConformanceBit Name="GeneralProtection" />
<ConformanceBit Name="GeneralBlockTransfer" />
<ConformanceBit Name="Get" />
<ConformanceBit Name="Set" />
<ConformanceBit Name="SelectiveAccess" />
<ConformanceBit Name="Action" />
</ProposedConformance>
<ProposedMaxPduSize Value="0100" />
</InitiateRequest>
</AssociationRequest>
</PDU>
</WRAPPER>

regards,
Vitaly

Profile picture for user Kurumi

Kurumi

5 years 2 months ago

Hi Vitaly,

Hi Vitaly,

You are right about this. This is broken and ECDSA authentication is not working at the moment. I'll add this to the worklist. The next release is next week.

BR,
Mikko

VitalyP

5 years ago

Hi, Mikko

Hi, Mikko

The new revision still send only 16 bytes for CallingAuthenticationValue in HLS ECDSA Authorization.

regards,
Vitaly

Profile picture for user Kurumi

Kurumi

5 years ago

Hi,

Hi,

You are right. That is still on test and it's coming in part of the next release.

BR,
Mikko

VitalyP

4 years 8 months ago

Hi, Mikko

Hi, Mikko

Are you going to implement HLS ECDSA Authorization for Gurux.DLMS ?

regards,
Vitaly

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi Vitaly,

Hi Vitaly,

It is implemented for the csharp. Get the latest version. Java is released as soon as tests of the new version are over and other programming languages will follow.

BR,
Mikko

VitalyP

4 years 8 months ago

Hi, Mikko

Hi, Mikko

GXDLMSDirector v 8.2.2109.301 includes Gurux.DLMS v 9.0.2.2109.201

Device Settings:
Authentication - HighECDSA
SecuritySuite - Suite1
Security - Authentication
Signing - OnePassDiffleHelman

AARQ message:
<AssociationRequest>
<ApplicationContextName Value="LN_WITH_CIPHERING" />
<CallingAPTitle Value="454D520700000001" />
<SenderACSERequirements Value="1" />
<MechanismName Value="HighECDSA" />
<CallingAuthentication Value="4C5F2A0C5D2C700A12443B2302400471" />
<glo_InitiateRequest Value="110000000001000000065F1F0400001E5DFFFF928CEBEE43CEB94718B87851" />
</AssociationRequest>

Back to top of this thread- CallingAuthentication Value for HighECDSA mechanism have to be 32..64 bytes long.
You can see, that GXDLMSDirector sends only 16 bytes CallingAuthenticationValue.

regards,
Vitaly

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi Vitaly,

Hi Vitaly,

Thank you for pointing this out and you are right. I have misunderstood what you mean.
I create an issue from this.
http://www.gurux.fi/node/19098

Challenge is now from 32 to 64 bytes when ECDSA authentication is used.

BR,
Mikko

VitalyP

4 years 8 months ago

Hi, Mikko

Hi, Mikko

Couple questions about the implementation.

- Your issue assume 64 bytes challenges. Are you going to implement challenge's length configuration ?

- DLMS assumes the possibility to send in AARQ not only client's title, but also client's certificate in calling-AE-qualifier field. Are you going to implement this feature ?

regards,
Vitaly

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi,

Hi,

Now when you said it, there will be ChallengeSize property. If it's zero, the random value is used.

Sending client's public key certificate in calling-AE-qualifier field is now in the testing phase. Because this is optional feature tests are made with all the meters that are supporting ECDSA authentication that we have (not many).

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin