Hello Eirik,
From the log I can tell that the client is failing to connect to the mdm check-in url. Unlick the previous call to retrieve the certificate info this call has strict ssl cert verification. So, it seems there is some issue with the ssl configuration. If nothing looks obvious after double checking open a support case and we can investigate further.
Richard Laos