← 가이드

Google Trust Services 무료 인증서 발급 따라하기

Google 공인 CA의 무료 90일 인증서. Google Cloud 프로젝트에서 gcloud로 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 위키