Hi team,
Is anyone using RAK2287 with things stack running on raspberry pi (localhost)?
Kindly share how you configured your certificates using cfssl? I’m trying to follow the steps as documented here Custom Certificate Authority but I get this error.
openssl verify -CAfile ca.pem cert.pem
C = US, ST = CA, L = SJ, O = Tech
error 18 at 0 depth lookup: self signed certificate
error cert.pem: verification failed
Basicstation works but UI doesn’t
If my cert.json file is like this, I am able to connect RAK2287 using docker to Things Stack but unable to login to UI.
{
"cn": "192.168.0.47",
"names": [
{"C": "US", "ST": "CA", "L": "SJ", "O": "Tech"}
]
}
This is the error message:
{
"code": 7,
"message": "error:pkg/web/oauthclient:exchange (token exchange refused)",
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/web/oauthclient",
"name": "exchange",
"message_format": "token exchange refused",
"correlation_id": "dd14286f1ed8407fb540dc41f3d80b2e",
"cause": {
"namespace": "pkg/errors",
"name": "request",
"message_format": "request to `{url}` failed",
"attributes": {
"op": "Post",
"url": "https://192.168.0.47/oauth/token"
},
"correlation_id": "389c4f533aca481e8a96b6ba07a839e8",
"cause": {
"namespace": "pkg/errors",
"name": "x509_hostname",
"message_format": "certificate authorized names do not match the requested name",
"attributes": {
"host": "192.168.0.47"
},
"correlation_id": "b2f0fe3c1b664ec599ad8abea247e2ec",
"code": 14
},
"code": 14
},
"code": 7
}
]
}
basicstation doesn’t work but UI works
If my cert.json file is like this then basicstation doesn’t start.
{
"hosts": ["192.168.0.47"],
"names": [
{"C": "US", "ST": "CA", "L": "SJ", "O": "Tech"}
]
}
This is the error message:
basicstation | cert. version : 3
basicstation | serial number : 7C:7E:73:41:86:5A:FB:55:FE:F7:80:C9:49:FA:88:EF:94:39:A8:4B
basicstation | issuer name : C=US, ST=CA, L=SJ, O=Tech
basicstation | subject name : C=US, ST=CA, L=SJ, O=Tech
basicstation | issued on : 2022-08-22 02:26:00
basicstation | expires on : 2027-08-21 02:26:00
basicstation | signed using : ECDSA with SHA256
basicstation | EC key size : 256 bits
basicstation | basic constraints : CA=true
basicstation | key usage : Key Cert Sign, CRL Sign
basicstation | 2022-08-22 02:32:15.236 [TCE:INFO] Connecting to INFOS: wss://192.168.0.47:8887
basicstation | 2022-08-22 02:32:15.270 [AIO:INFO] TLS server certificate verification failed: The certificate Common Name (CN) does not match with the expected CN
basicstation | 2022-08-22 02:32:15.270 [AIO:DEBU] [4] WS connection shutdown...
basicstation | 2022-08-22 02:32:15.270 [TCE:INFO] INFOS reconnect backoff 0s (retry 0)
basicstation | 2022-08-22 02:32:15.271 [AIO:INFO] ./tc.trust: