inblog logo
|
jaeminlog
    SILD 운영 가이드

    도메인/인증서 관리

    .
    유재민's avatar
    유재민
    Apr 02, 2024
    도메인/인증서 관리
    Contents
    인증서 만료일 확인하기

    인증서 만료일 확인하기

    EC2 인스턴스(링크) 에서 퍼블릭 IPv4 DNS 링크를 복사(노란색 부분)

    EC2 접속을 위한 인증서 파일(SILD_BUILDER 프로젝트의 sild-integration-server-key.pem)이 있는 곳에서 커맨드 실행

    ssh -i sild-integration-server-key.pem ubuntu@{ec2~amazonaws.com으로 끝나는 IPv4DNS 주소}

    아래처럼 접속 정보가 출력되면 접속 성공

    인증서 상태 확인 커맨드 실행

    sudo certbot certificates

    아래처럼 도메인별 VALID 기간 확인

    VALID: 30 days 미만이면 갱신 가능하고, 다같이 하는게 관리하기 편함

    도메인 별 인증서 갱신 커맨드 실행

    sudo certbot certonly -d admin.sild.app --manual --preferred-challenges dns

    입력시 아래와 같은 해시값 출력됨

    Please deploy a DNS TXT record under the name
    _acme-challenge.admin.sild.app with the following value:
    
    SBSjyNjopisqohScfvnL0Xq8Bwk894H972axBfqUUds
    
    Before continuing, verify the record is deployed.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Press Enter to Continue

    가비아 로그인 후 DNS 관리페이지(링크) 접속

    노란색 수정 버튼 클릭해서 위의 해시값 넣고 저장

    약 30초정도 대기 후 다시 커맨드창 돌아가서 Enter 후 인증서 상태 확인 커맨드 실행

    sudo certbot certificates

    VALID 기간이 90일로 늘어났으면 성공, 나머지 도메인들도 모두 같은 작업 반복

    sudo certbot certonly -d buy.sild.app --manual --preferred-challenges dns
    sudo certbot certonly -d integration.sild.app --manual --preferred-challenges dns
    sudo certbot certonly -d partners.sild.app --manual --preferred-challenges dns
    sudo certbot certonly -d sild.app --manual --preferred-challenges dns

    마지막으로 인증서 상태 확인 커맨드 실행

    sudo certbot certificates

    모든 도메인 VALID 기간이 90일로 늘어났는지 확인

    Share article
    Contents
    인증서 만료일 확인하기

    jaeminlog

    RSS·Powered by Inblog