I am trying to connect my device to the hosted.mender.io 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:
As you are using https://hosted.mender.io, 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!