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.