Basics Station Fails

Issue: Basics Station is failing when using client token authentication

Setup: RAK7240 - 1.2.0064_Release r208 - Basic Station LNS Only

LoRa® Server: The Things Industries - V3

Details: Basics station is working with “TLS Server Authentication”, but when I see the following error message (in the system log) when trying to connect using a client token:

Tue Feb  2 02:41:44 2021 user.info basicstation[6851]: [any:INFO] /var/etc/station/tc.trust: 
cert. version     : 3
serial number     : xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
issuer name       : O=Digital Signature Trust Co., CN=DST Root CA X3
subject name      : O=Digital Signature Trust Co., CN=DST Root CA X3
issued  on        : 2000-09-30 21:12:19
expires on        : 2021-09-30 14:01:15
signed using      : RSA with SHA1
RSA key size      : 2048 bits
basic constraints : CA=true
key usage        Tue Feb  2 02:41:44 2021 user.err basicstation[6851]: [AIO:ERRO] tc contains malformed auth token - expecting: {header: value\r\n}*
Tue Feb  2 02:41:44 2021 user.info basicstation[6851]: [TCE:INFO] INFOS reconnect backoff 60s (retry 7)

This looks like the system is expecting a carriage return and line feed somewhere in the file, which it isn’t seeing. Not sure if this is user error or a bug.

Hi @john Please update to the latest firmware R209 - link. R208 has some cert management issue.

Hi @velev I’ve updated and have the same problem, exact same error message:

Wed Feb 3 01:08:33 2021 user.info basicstation[4571]: [any:INFO] /var/etc/station/tc.trust:
cert. version : 3
serial number : xxxxxxxxxxxxxxxxxxxxxxxxxxx
issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
issued on : 2000-09-30 21:12:19
expires on : 2021-09-30 14:01:15
signed using : RSA with SHA1
RSA key size : 2048 bits
basic constraints : CA=true
key usage Wed Feb 3 01:08:33 2021 user.err basicstation[4571]: [AIO:ERRO] tc contains malformed auth token - expecting: {header: value\r\n}*
Wed Feb 3 01:08:33 2021 user.info basicstation[4571]: [TCE:INFO] INFOS reconnect backoff 30s (retry 3)

Hm… The token is generated by the CLI, I suppose? Can you try to put the token in the token field in this format Authorization: AZ385fgheuyuslo3due ?
https://lora-developers.semtech.com/resources/tools/lora-basics/lora-basics-for-gateways/?url=authmodes.html

1 Like

Ahhh fantastic, this worked!
Thank you :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.