gitlab-ssl证书过期,以及更换ssl证书

2021-07-30 16:58:37 浏览数 (1)

查看自己配置的证书的位置:

# cat /etc/gitlab/gitlab.rb |grep test.com

external_url 'https://gitlab.test.com'

registry_external_url 'https://gitlab.test.com:4567'

registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/test.com.crt"

registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/test.com.key"

nginx['ssl_certificate'] = "/etc/gitlab/ssl/test.com.crt"

nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/test.com.key"

更换/etc/gitlab/ssl/下的新证书后,必须执行recofigure一次,然后再重启。

# gitlab-ctl reconfigure

# gitlab-ctl restart

然后再打开网页看看证书信息

0 人点赞