Gitlab Pages自定义域SSL [英] Gitlab Pages custom domain SSL
问题描述
我正在尝试将TLS/SSL添加到我在Gitlab上的自定义域中.目前,它说我的网站可以在 https://yodel.co 上找到,但是当我去那里时,它说证书是无效的.我如何去验证证书?
I'm trying to add TLS/SSL to my custom domain on Gitlab. Currently it says my site is available at https://yodel.co, but when I go there it says the certificate is invalid. How do I go about validating the certificate?
在文档中(也如图),它表示在设置新域时需要从管理员中添加密钥.但是,由于我是管理员,所以我不确定从哪里获取这些密钥.
In the docs (also pictured) it says there are keys to add from your admin when setting up a new domain. However I'm not sure where to get these keys as I am the admin.
我的Gitlab页面
Gitlab文档屏幕截图
推荐答案
3年后,您可以使用GitLab 12.1(2019年7月)简化您的流程.
You can simplify, 3 years later, your process by using GitLab 12.1 (July 2019).
It comes with "Automatic HTTPS for Pages with Let's Encrypt":
在12.1中,添加新的自定义域的Pages用户可以启用使用Let's Encrypt进行自动证书管理".
配置此设置后,GitLab会自动从Let's Encrypt采购证书,将其置备到您在GitLab中的自定义域,跟踪过期日期并自动更新您的证书.
In 12.1, Pages users that add a new custom domain can enable "Automatic certificate management using Let’s Encrypt".
With this setting configured, GitLab automatically procures certs from Let’s Encrypt, provisions them to your custom domain in GitLab, keeps track of the expiration date and automatically renews your certs.
更多信息,请参见"与Let's Encrypt集成的GitLab页面",来自问题28996 :
See more at "GitLab Pages integration with Let's Encrypt", from issue 28996:
GitLab Pages与Let's Encrypt(LE)的集成使您可以将LE证书用于具有自定义域的Pages网站,而不必麻烦自己发行和更新它们; GitLab可以立即为您完成.
The GitLab Pages integration with Let’s Encrypt (LE) allows you to use LE certificates for your Pages website with custom domains without the hassle of having to issue and update them yourself; GitLab does it for you, out-of-the-box.
您的选择可以在每个域中进行设置,以适应不断变化的用户和需求.
Your selections can be set on a per-domain basis to accommodate varying users and requirements.
这篇关于Gitlab Pages自定义域SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!