GitLab的Https证书过期的问题处理
Xplorist Lv6

GitLab的Https证书过期的问题处理

refence-site-list

steps

  • x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

cd /etc/gitlab/ssl

mkdir his_bak
ls

mv gitlab.xplorist.tech.crt ./his_bak/
mv gitlab.xplorist.tech.crt-staging ./his_bak/
mv gitlab.xplorist.tech.key ./his_bak/
mv gitlab.xplorist.tech.key-staging ./his_bak/


curl https://get.acme.sh | sh

vi ~/.bashrc
# 在.bashrc 里添加
## 编辑.bashrc开始
export Ali_Key="AccessKeyId"
export Ali_Secret="AccessKeySecret"
## 编辑.bashrc结束

source ~/.bashrc

acme.sh --issue --dns dns_ali -d gitlab.xplorist.tech --server letsencrypt

# 查看计划表
crontab -l

# 分配给 nginx
acme.sh --issue --dns dns_ali -d gitlab.xplorist.tech \
--server letsencrypt \
--installcert \
--key-file /etc/gitlab/ssl/gitlab.xplorist.tech.key \
--fullchain-file /etc/gitlab/ssl/gitlab.xplorist.tech.crt \
--reloadcmd "gitlab-ctl restart nginx"

# 重新配置GitLab

gitlab-ctl reconfigure

 评论