Skip to content

gitlab 11.0.0 nginx ignores SSL certificate and key location parameter #492

Description

@ikonia

using gitlab 11.0.0 on EL 10.

setting the location of the SSL certificate and key file for the gitlab omnibus nginx instance

gitlab::ngnix:
redirect_http_to_https: true
ssl_certificate: '/etc/pkit/tls/certs/wildcard.no-dns.co.uk.crt'
ssl_certificate_key: '/etc/pki/tls/private/wildcard.no-dns.co.uk.key'

should have nginx look in the system locations for SSL certificate and key locations

the gitlab nginx instance fails to start appearing to pickup both the location and certificate (and key) name from the hostname of the instance.

2026-06-09_09:18:30.58845 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)
2026-06-09_09:18:31.59979 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)
2026-06-09_09:18:32.61033 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)
2026-06-09_09:18:33.62665 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)
2026-06-09_09:18:34.64666 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)
2026-06-09_09:18:35.65835 nginx: [emerg] cannot load certificate "/etc/gitlab/ssl/dax.no-dns.co.uk.crt": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/gitlab/ssl/dax.no-dns.co.uk.crt, r) error:10000080:BIO routines::no such file)

the actual nginx config held in /opt/gitlab/embedded/conf/nginx.conf does not reference any SSL configuration which is most likely what's forcing the default parameters to be picked up

I'll provide more information as I look deeper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions