The logs are slightly different using https://192.168.2.114:
Nov 04 08:51:20 client mender-auth[13352]: using interface /sys/class/net/eth0
Nov 04 08:51:20 client mender-auth[2338]: record_id=1040 severity=info time=“2024-Nov-04 08:51:20.323808” name=“Global” msg=“Signing with: /var/lib/mender/mender-agent.pem”
Nov 04 08:51:20 client mender-auth[2338]: record_id=1041 severity=error time=“2024-Nov-04 08:51:20.505267” name=“http_client” url=“https://192.168.2.114/api/devices/v1/authentication/auth_requests” msg=“https: Failed to perform the SSL handshake: certificate verify failed”
Nov 04 08:51:20 client mender-auth[2338]: record_id=1042 severity=info time=“2024-Nov-04 08:51:20.505836” name=“Global” msg="Authentication error trying server ‘https://192.168.2.114’: certificate verify failed: POST https://192.168.2.114/api/devices/v1/authentication/auth_requests: "
Nov 04 08:51:20 client mender-auth[2338]: record_id=1043 severity=error time=“2024-Nov-04 08:51:20.505988” name=“Global” msg=“Failed to fetch new token: Authentication error: No more servers to try for authentication”
I tried running the curl command on the server to check API access:
curl -v -X POST https://hosted.mender.io/api/management/v1/useradm/auth/login
-H ‘Content-Type: application/json’
-H ‘Accept: application/jwt’
and received the following:
{“error”:“invalid or missing auth header”,“request_id”:“ac8cd6d0-907a-4a73-a324-6522bdbe3c32”}
Should this have generated a JWT token? How can I get a valid JWT token?