Running latest gitlab server version 13.10.0 listening on http or 80 port.
Trying to enable the SSL by introducing following configurations in the gitlab.rb:
letsencrypt[‘enable’] = true
letsencrypt[‘contact_emails’] = [‘firstname.lastname@example.org’]
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 80
However, reconfiguring attempt failing by throwing following exception:
There was an error running gitlab-ctl reconfigure:
letsencrypt_certificate[git.mydomain.ltd] (letsencrypt::http_authorization line 5) had an error: RuntimeError: acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: RuntimeError: ruby_block[create certificate for git.mydomain.ltd] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [git.sahaba.net] Validation failed, unable to request certificate
whereas hostname to IP resolves successfully through internal DNS as well as hosts file also updated with the same host info.
moreover, the /etc/gitlab/ssl/ does have all necessary certs created successfully - still failing.