CAAレコードの追加
A Certificate Authority Authorization (CAA) DNS record specifies which certificate authorities (CAs) are allowed to issue certificates for a domain. This record reduces the chance of unauthorized certificate issuance and promotes standardization across your organization.
追加のセキュリティのために、証明書透明性モニタリングも設定してください。
以下のすべてが真である場合、CloudflareでCAAレコードを作成する必要があります:
- 自分のカスタムオリジンサーバー証明書をアップロードした(Cloudflareによって提供されていない)。
- その証明書はCAによって発行された(自己署名ではない)。
- ドメインはフルセットアップである(CNAMEセットアップではない)。
- 新しいカスタムホスト名を追加する際に、顧客が既存のCAAレコードを持っている場合。この場合、顧客に既存のCAAレコードを削除するか、欠落しているCAAレコードを追加するように依頼してください。
Cloudflare adds CAA records automatically in two situations:
- When you have Universal SSL or advanced certificates and add any CAA records to your zone.
- When you have Universal SSL enabled and enable AMP Real URL or SXG Signed Exchanges.
These records make sure Cloudflare can still issue Universal certificates on your behalf.
If Cloudflare has automatically added CAA records on your behalf, these records will not appear in the Cloudflare dashboard. However, if you run a command line query using dig, you can see any existing CAA records, including those added by Cloudflare (replacing example.com with your own domain on Cloudflare):
➜ ~ dig example.com caa +short# CAA records added by DigiCert0 issue "digicert.com; cansignhttpexchanges=yes"0 issuewild "digicert.com; cansignhttpexchanges=yes"
# CAA records added by Sectigo0 issue "sectigo.com"0 issuewild "sectigo.com"
# CAA records added by Let's Encrypt0 issue "letsencrypt.org"0 issuewild "letsencrypt.org"
# CAA records added by Google Trust Services0 issue "pki.goog; cansignhttpexchanges=yes"0 issuewild "pki.goog; cansignhttpexchanges=yes"ドメインに使用する予定の各証明書機関(CA)についてCAAレコードを作成します。
ダッシュボードでCAAレコードを追加するには、
- Cloudflareダッシュボード ↗にログインし、アカウントとアプリケーションを選択します。
- DNS > レコードに移動します。
- レコードを追加を選択します。
- タイプとしてCAAを選択します。
- 名前にドメインを入力します。
- レコードに関連付けられた動作を指定するタグを選択します。
- CAドメイン名にCA名を入力します。
- 保存を選択します。
- ドメインに関連する各CAについて繰り返します。
APIを介してCAAレコードを作成するには、このPOSTエンドポイントを使用します。
すべてのレコードの作成が完了したら、DNSレコードパネルに表示されるレコードのリストでそれらを確認できます。