certificate misses intermediates behind Cloudflare
Setting up a new domain on Gitlab Pages behind Cloudflare according to the instructions here is not working. It results in 'certificate misses intermediates' and the Certificate setting reverts to "Automatic certificate management using Let's Encrypt" enabled, which naturally also fails with the site sitting behind CF proxy.
Steps to reproduce:
- In Cloudflare set SSL/TLS to "Full (Strict)" or create a Page Rule for the specific hostname to set SSL to "Strict".
- Generate a certificate in the Cloudflare Dashboard under SSL/TLS -> Origin Certificate
- Create domain in Pages
- Unset "Automatic certificate management using Let's Encrypt"
- Copy the generated certificate and key and paste the Cloudflare intermediate certificate under the certificate. (I checked the pasted certs here for chain issues) and click "Create new domain".