← 가이드

Google Trust Services 무료 인증서 발급 따라하기 (gcloud EAB)

Google 공인 CA 의 무료 90일 인증서. Google Cloud 프로젝트에서 EAB 키를 만들어 certbot·acme.sh 로 받는 순서와, EAB 7일 만료 같은 함정.최종 확인 2026-09-25

한눈에

항목 내용
비용 무료 — “There is no charge for requesting certificates from Public CA”(공식)
유효기간 90일
ACME 디렉터리 운영 https://dv.acme-v02.api.pki.goog/directory · 테스트 https://dv.acme-v02.test-api.pki.goog/directory
EAB 필요 — gcloud 로 발급, 7일 안에 사용, 키 1개로 ACME 계정 1개만 등록
준비물 Google Cloud 프로젝트, 역할 roles/publicca.externalAccountKeyCreator
한도 신규 주문 시간당 100건 등 — GCP 프로젝트 단위로 공유(할당량)

따라하기

  1. Google Cloud 프로젝트를 고르고, 내 계정에 roles/publicca.externalAccountKeyCreator 역할이 있는지 확인합니다.
  2. API 를 켭니다:
    gcloud services enable publicca.googleapis.com
  3. EAB 키를 만듭니다:
    gcloud publicca external-account-keys create
    응답의 keyId 가 EAB KID, b64MacKey 가 EAB HMAC 입니다. 7일 안에 다음 단계를 진행하세요.
  4. certbot 계정 등록:
    sudo certbot register --email "you@example.com" --no-eff-email \
      --server "https://dv.acme-v02.api.pki.goog/directory" \
      --eab-kid "<keyId>" --eab-hmac-key "<b64MacKey>"
  5. 발급 — 공식 예시는 DNS 확인(TXT) 방식입니다:
    sudo certbot certonly --manual --preferred-challenges "dns-01" \
      --server "https://dv.acme-v02.api.pki.goog/directory" --domains "example.com"
    안내된 TXT 를 _acme-challenge.example.com 에 넣고 DNS 전파 확인에서 권한 네임서버에 보이면 진행합니다.
  6. acme.sh 를 쓴다면:
    acme.sh --register-account -m you@example.com --server google \
      --eab-kid <keyId> --eab-hmac-key <b64MacKey>
    acme.sh --issue --server google -d example.com -w /var/www/html

주의

출처: Public CA 튜토리얼 · 할당량 · acme.sh Google 위키