Respect x509 common name
Ensures the recognition of the x509 certificate common name field. This is needed due to a breaking change in Go v1.15. This workaround is intended to be removed in GitLab v14 (#3044 (closed)).
Edited by Paul Okstad (ex-GitLab)