Change the use of a wildcard certificate to LetsEncrypt for Gitlab pages

Hello there !

I have a question that I can’t answer. I’ve been going through the documentation, forums and digging online.

We do use a lot the artifact “browse” option on the pipelines. We use it with a tool that scans the pipeline and gives you a pdf or html report that you can browse using this artifacts. I have a wildcard certificate for it that works fine, but I’m also trying to see if we can generate those with lets encrypt.

This is my config from gitlab.rb

cat gitlab.rb | grep pages

pages_external_url ‘https://gitpages.company.com
gitlab_pages[‘access_control’] = true
pages_nginx[‘ssl_certificate’] = “/etc/gitlab/ssl/wild.gitpages.company.com.crt”
pages_nginx[‘ssl_certificate_key’] = “/etc/gitlab/ssl/wild.gitpages.company.com.key”

cat gitlab.rb | grep external

external_url ‘https://git.company.com
registry_external_url ‘https://gitregistry.company.com
pages_external_url ‘https://gitpages.company.com

I’ve been trying to figure out the way to switch it to use lets encrypt, but I’m starting to believe that is not possible…

This option, browse

image

Gives me this:

Now, for this pages that comes from artifacts, this must have a wildcard certificate, right ? it’s not possible to generate them with lets encrypt.