Rocky Linux SSL 보안 인증서 연장하여 적용하기 > 리눅스

본문 바로가기
사이트 내 전체검색

리눅스

Rocky Linux SSL 보안 인증서 연장하여 적용하기

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 24회 작성일 26-02-01 17:19

본문

[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

댓글목록

등록된 댓글이 없습니다.


회사소개 개인정보취급방침 서비스이용약관 모바일 버전으로 보기 상단으로

TEL. [본점] 042-365-0123 [청주] 043-223-2114 H.P 010-5500-1456. 개인정보관리책임자 Email: kpcas@pcas.kr
대표:임재관 사업자등록번호:305-08-54668.

Copyright © www.PCAS.kr. All rights reserved.