SSL: certificate subject name does not match target host name

I have a unity project and contact an API for collecting data.
In the Editor, Android build, iOS build and Windows build everything is working fine. But the build for OSX gives me errors:

SSL: certificate subject name 'com-linweb061' does not match target host name 'ava-trix.com'

But the common name in my certificate is *.ava-trix.com, as you can see here:

I have no idea what the problem is here. Can anyone help me out?

I was using Unity 5.3.5 wich, apparently, has an SSL problem for 32-bit OSX builds. So I created a 64bit version and the problem was gone.