I have the same issue with MM 4.4.5 and Gitlab 10.2.3 on separate hosts.
P.S.
Temporary solution for me is to make TokenEndpoint and UserApiEndpoint simple http instead of https in mattermost gitlab config. Though all ssl certificates are valid and trusted on both hosts.