@Daniel Krzyczkowski Thanks for reaching out. The issue can be observed due to multiple reasons and I was able to reproduce the issue in the below scenario.
- If you are using a self-signed cert for your custom domain (management endpoint)
- The certificate may have expired
- The custom domain is mapped incorrectly with the IP address
I believe you might have already looked into the Prerequisites and other sections on the document but suggest you to review it again to see if it helps you to verify the configuration again at your end.
To troubleshoot it further we will be ending your APIM instance details so we can review the configuration of APIM at our end to confirm if there is any configuration issue. In case if you are still facing the issue then please respond only to my private comment to share the APIM instance details.