Still x509 error while executing authorization request


I am trying to connect my device to the server without a full Mender integration. For this purpose, I compiled the mender client for my architecture and followed the steps here. However, I always get the x509 authorization error:

My /etc/mender/mender.conf looks like this:

   "IntervalSeconds": 5,
   "RetryPollIntervalSeconds": 30,
   "ServerURL": "",
   "TenantToken": " MY TOKEN ",
   "UpdatePollIntervalSeconds": 5

I tried it without any server.crt at /etc/mender and created one on my own using: ./keygen

with the integration repository and copied that file on my device.

What are the final steps to authorities my device?

As you are using, as far as I am aware you shouldn’t need to provide the Server.crt as its using the real online mender cert. What you may not have your end is the full certificate authority chain installed on your device. This is usually satisfied by installing the ca-certificates package/recipe depending on if you are doing a Yocto build or some other Linux distro build.

A missing ca-certificates package was also my best guess, but the functionality along with OpenSSL implementation is fully available.
However, I noticed that my certificates were not available at the default location /usr/local/ssl. Switching to that directory made it working for me.
Anyway, thanks @dellgreen! :sunny:

1 Like