Gitlab Pages custom domain SSL

江枫思渺然 提交于 2019-12-22 14:38:33

问题


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.

My Gitlab Pages

Gitlab docs screenshot


回答1:


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":

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.

See more at "GitLab Pages integration with Let's Encrypt", from issue 28996:

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.




来源:https://stackoverflow.com/questions/38058694/gitlab-pages-custom-domain-ssl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!