I've tried connect the Portal with Gateway, but I've this problem.
Someone knows why it's happening?
Please ensure your Gateway is able to resolve "https://enroll.apim.ca". You may want to add it to the /etc/hosts file of your Gateway and try again.