Learn how to fix the Certificates misses intermediates error when you register a Let's Encrypt certificate for your site hosted on GitLab Pages.
Follow these steps to reproduce the error:
- Log in to GitLab and select your project.
- Go to Settings > Pages.
- Click New Domain or select Details on a domain that you already have registered.
- Enter your certificate in the Certificate (PEM) field and your certificate key in the Key (PEM) field.
- Click Create New Domain (or Save Changes) if you’re updating an existing domain.
The page displays the following error:
Certificate misses intermediates
GitLab Pages requires you to also upload the intermediate certificates in the chain of trust.
Download and provide the Let’s Encrypt intermediate certificate. According to Intermediate Certificates, Let’s Encrypt uses an intermediate that is cross-signed by another authority, IdenTrust. Use this cross-signed certificate as the intermediate in your GitLab Pages domain registration:
- Copy the cross-signed certificate text from the Let’s Encrypt site.
- In the Certificate (PEM) field, enter your certificate, followed by a new
line, and the cross-signed certificate afterwards, as shown in the following
-----BEGIN CERTIFICATE----- Your_certificate ... ... -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- The cross-signed_certificate ... ... -----END CERTIFICATE-----
- Click Save Changes.