I hope my english is not to bad After day's of struggeling to make mdm plugin work I found the soloution for me.
I gott the error "cant connect to z-push server" the reason was the certificate (letsencrypt).
The first problem is, when connecting over localhost or 127.0.0.1 the certificate is not valid because of the not matching domain name.
After searching the web for hours and hours here the tip for all with the same problem:
Search for "return new SoapClient"
and add "'stream_context'=> stream_context_create(array('ssl'=> array('verify_peer'=>false,'verify_peer_name'=>fal se)))"
Now mdm accept every certificate
return new SoapClient(null, array(
'location' => $url,
'uri' => $this->server,
'trace' => 1,
'login' => $this->username,
'password' => $this->password,
'stream_context'=> stream_context_create(array('ssl'=> array('verify_peer'=>false,'verify_peer_name'=>false)))
Maybe a parameter in the config would help e.g.
Hope it helps