Hello all
I’m trying to configure my local gitlab-ce server with an SSL certificate from let’s encrypt. on RHEL 8.
I first did this to set the hostname of my server to be like the external URL defined in gitlab.rb
sudo hostnamectl set-hostname gitlab.example.com --static
And then I made these changes to the gitlab.rb file
external_url '
https://gitlab.example.com
'
letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['admin@example.com']
letsencrypt['auto_renew'] = true
letsencrypt['auto_renew_hour'] = 3
letsencrypt['auto_renew_day_of_month'] = "*/7"
nginx['enable'] = true
nginx['client_max_body_size'] = '250m'
nginx['redirect_http_to_https'] = true
nginx['redirect_http_to_https_port'] = 80
And then I ran
sudo gitlab-ctl reconfigure
I keep getting this error message
Error executing action `create` on resource 'letsencrypt_certificate[gitlab.example.com]'
================================================================================
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 gitlab.example.com] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb line 108) had an error: RuntimeError: [gitlab.example.com] Validation failed, unable to request certificate, unable to request certificate
PS : I changed example with another name when doing the configuration!
I’ve tried many fixes i found on forums but none of them worked for me.
So would really appreciate any help I can get