This is my problem, on the TTN documentation, it’s write that we’ve to put the CUPS API KEY in a cups.key file in the folder /etc/bstn/, but we have also a LNS key that is much longer onthe console of TTN and I would like to know if this is this key that we’ve to use instead of the cups api key.
Because here, you have my cups key on your screen.
For the certificates, i use this file provided on the TTN doc :
Mar 29 08:23:57 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1276 retrying to connect within 15 seconds
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:456 failed to open a file /etc/bstn/tc.trust: No such file or directory
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:456 failed to open a file /etc/bstn/tc.key: No such file or directory
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_utils.c:298 failed to open a file /etc/bstn/tc.uri: No such file or directory
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:966 LNS endpoint file is missing, must be downloaded via CUPS
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1002 CUPS request body: { “router”: “647f:daff:fe00:78dc”, “cupsUri”: “https://eu1.cloud.thethings.network:443”, “cupsCredCrc”: 3042594549, “tcCredCrc”: 1, “station”: “Tektelic Kona gateway”, “model”: “micro”, “package”: “Tektelic Basic Station” }
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1012 using CUPS request URI: https://eu1.cloud.thethings.network:443/update-info
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1057 performing CUPS request
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1082 using token for client auth
Mar 29 08:24:12 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1102 constructed auth header: "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
"
Mar 29 08:24:13 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1150 CUPS response code: 409
Mar 29 08:24:13 kona-micro-0078DC tek_bstn[18991]: [18991][DEBUG ] bridge_bstn_cups.c:1276 retrying to connect within 15 seconds