본문 바로가기

리눅스

[Docker] GitLab(Omnibus) Let's Encrypt 갱신

반응형

GitLab(Omnibus) Let's Encrypt 갱신

docker 컨테이너 이름 확인

$ docker-compose ps
 Name        Command          State                                                    Ports
------------------------------------------------------------------------------------------------------------------------------------------
gitlab   /assets/wrapper   Up (healthy)   22/tcp, 0.0.0.0:2222->2222/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5000->5000/tcp, 0.0.0.0:80->80/tcp

gitlab Let's Encrypt renewal

docker-compose exec gitlab gitlab-ctl reconfigure

$ docker-compose exec gitlab gitlab-ctl reconfigure
Starting Chef Infra Client, version 15.14.0
resolving cookbooks for run list: ["gitlab"]
Synchronizing Cookbooks:
  - gitlab (0.0.1)
  - package (0.1.0)
  - logrotate (0.1.0)
  - postgresql (0.1.0)
  - redis (0.1.0)
  - monitoring (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - consul (0.1.0)
  - gitaly (0.1.0)
  - praefect (0.1.0)
  - gitlab-kas (0.1.0)
  - gitlab-pages (0.1.0)
  - letsencrypt (0.1.0)
  - nginx (0.1.0)
  - runit (5.1.3)
  - acme (4.1.1)
  - crond (0.1.0)

...

Running handlers:
Running handlers complete
Chef Infra Client finished, 17/845 resources updated in 35 seconds
gitlab Reconfigured!

SSL 인증서 만료일 조회

echo | openssl s_client -servername gitlab.sangchul.kr -connect gitlab.sangchul.kr:443 2>/dev/null | openssl x509 -noout -dates

$ echo | openssl s_client -servername gitlab.sangchul.kr -connect gitlab.sangchul.kr:443 2>/dev/null | openssl x509 -noout -dates
notBefore=Sep  5 12:28:52 2021 GMT
notAfter=Dec  4 12:28:51 2021 GMT
728x90
반응형