Rocky Linux SSL 보안 인증서 연장하여 적용하기
페이지 정보
작성자 관리자 작성일 26-02-01 17:19 조회 23 댓글 0본문
[root@localhost ~]# systemctl stop httpd [서비스 중지]
Let's Encrypt SSL 보안 인증서 인증서 받기
[root@localhost ~]# certbot certonly -d mail.도메인주소
[root@localhost ~]# certbot certonly -d 도메인주소
[root@localhost ~]# systemctl start httpd [서비스 시작]
httpd 인증키 적용
vim /etc/httpd/conf.d/ssl.conf 97,98, 108, 109라인
SSLCertificateKeyFile /etc/letsencrypt/live/도메인주소/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/도메인주소/chain.pem
[root@localhost ~]# systemctl restart httpd [서비스 재시작]
Dovecot 인증키 적용
[root@localhost ~]# systemctl stop dovecot [서비스 중지]
[root@localhost ~]# vim /etc/dovecot/conf.d/10-ssl.conf 18라인
ssl_cert = </etc/letsencrypt/archive/도메인주소/certX.pem
ssl_key = </etc/letsencrypt/archive/도메인주소/privkeyX.pem
ssl_ca = </etc/letsencrypt/archive/도메인주소/chainX.pem
Dovecot 서비스 실행 테스트
[root@localhost ~]# systemctl restart dovecot [서비스 재시작]
[root@localhost ~]# systemctl enable dovecot [서비스 자동 시작 등록]
[root@localhost ~]# systemctl status dovecot | grep Active [Active 정상 구동]
Active: active (running) since Fri 2022-05-27 09:08:05 EDT; 3s ago
[root@mail ~]# ps -ef | grep dovecot [프로세스 구동 확인]
root 7890 1 0 09:08 ? 00:00:00 /usr/sbin/dovecot -F
dovecot 7891 7890 0 09:08 ? 00:00:00 dovecot/anvil
root 7892 7890 0 09:08 ? 00:00:00 dovecot/log
root 7893 7890 0 09:08 ? 00:00:00 dovecot/config
Let's Encrypt SSL 보안 인증서 인증서 받기
[root@localhost ~]# certbot certonly -d mail.도메인주소
[root@localhost ~]# certbot certonly -d 도메인주소
[root@localhost ~]# systemctl start httpd [서비스 시작]
httpd 인증키 적용
vim /etc/httpd/conf.d/ssl.conf 97,98, 108, 109라인
SSLCertificateKeyFile /etc/letsencrypt/live/도메인주소/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/도메인주소/chain.pem
[root@localhost ~]# systemctl restart httpd [서비스 재시작]
Dovecot 인증키 적용
[root@localhost ~]# systemctl stop dovecot [서비스 중지]
[root@localhost ~]# vim /etc/dovecot/conf.d/10-ssl.conf 18라인
ssl_cert = </etc/letsencrypt/archive/도메인주소/certX.pem
ssl_key = </etc/letsencrypt/archive/도메인주소/privkeyX.pem
ssl_ca = </etc/letsencrypt/archive/도메인주소/chainX.pem
Dovecot 서비스 실행 테스트
[root@localhost ~]# systemctl restart dovecot [서비스 재시작]
[root@localhost ~]# systemctl enable dovecot [서비스 자동 시작 등록]
[root@localhost ~]# systemctl status dovecot | grep Active [Active 정상 구동]
Active: active (running) since Fri 2022-05-27 09:08:05 EDT; 3s ago
[root@mail ~]# ps -ef | grep dovecot [프로세스 구동 확인]
root 7890 1 0 09:08 ? 00:00:00 /usr/sbin/dovecot -F
dovecot 7891 7890 0 09:08 ? 00:00:00 dovecot/anvil
root 7892 7890 0 09:08 ? 00:00:00 dovecot/log
root 7893 7890 0 09:08 ? 00:00:00 dovecot/config
댓글목록 0
등록된 댓글이 없습니다.
