こんにちは。eyeon運用チームです。
ちょっと時事ネタとしてはかなり古いのですが、以下のAWSさんからの通知は皆さんも届いておられますか?
件名: [Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses
「WHOIS管理のメアドへの、ACM(AWS Certificate Manager)からの認証(検証)メールを止めるよ」って通知ですね。
それは困る!かどうかの確認を含め、本日はこのAWSさんの仕様変更のお知らせを、嚙み砕いてみます。(全く砕かれてないよ!とかのツッコミは、わたしの心が折れるリスクがあります。くれぐれもご容赦ください。)
なお、本日はこのサイトのk-friendly.comの証明書を対象に届いていた通知を例に、ムシャっと砕いています。
また、結論を簡単に言うと、証明書更新にメール検証を利用している場合は、「the five common system administrator addresses」にて受信しているか確認しましょう!
違うアドレスで受信しているならDNS検証に変更しましょう!
でございます。
ちゃんと説明しろよ!って場合のみ、以下をご笑覧くださいませ。
1.前提知識
1-1.一般的なTLS/SSL証明書の認証
AWS(ACM)に限った話ではないですが、TLS/SSL証明書は一定期間ごと(※1)に更新が必要です。
そしてその証明書の更新ですが、対象のドメインの管理者の承認を得て初めて成立いたします。
例えば、このサイトのk-friendly.comの証明書(※2)を更新する場合、k-friendly.comってドメインの管理者による承認が必要です。
(※1)現在では、有効期間=1年って場合がほとんどですね。
オレオレ証明書(自己証明書)の場合は、10年とかを設定したりします。
(※2)ブラウザのURLの左のアイコンをクリックすると証明書の有効期限とかを確認できます。
以下は、Chromeの場合の例です。
このwww.k-friendly.comの証明書の有効期限は、8月16日に切れちゃうって分かります。
(2024年6月現在のキャプチャ)

1-2.AWSさんの場合(DNS検証とメール検証)
AWS Certification Managerにおける証明書の検証方式は以下に記載のとおり、メール検証とDNS検証です。
Validate domain ownership for AWS Certificate Manager public certificates
メール検証の場合は、対象のドメインの管理者に「この証明書ってオタクが使っているの?更新する?」ってメールが毎年届きます。
DNS検証の場合は、対象のドメインのDNSレコードをACMが勝手にチェックのうえ、証明書を自動更新します。DNSレコードに証明書検証用のレコードが登録されているなら、検証済みに決まってんじゃん、自動更新しちゃえって仕組みです。
2.実際のメール(AWS通知)
以下のメールです。
出典はもちろん、AWSさんからのメールです。
次章「3.」で、マルっと噛み砕いてみます。
件名: [Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses [AWS Account: 999999999999] [US-EAST-1]
本文: (以下です)
We are reaching out to you as you have at least one e-mail validated public certificate[1] issued through AWS Certificate Manager(ACM) that was validated using an email address registered with the WHOIS lookup of the domain. A list of your affected certificate(s) can be found in the 'Affected resources' tab of your AWS Health Dashboard. WHOIS is a public service operated by domain registrars to provide ownership and contact information for a domain. For privacy reasons almost all domain registrars have removed contact information from WHOIS. What is Changing? Starting June 2024 for new certificates and Oct 2024 for existing certificates, ACM will stop sending validation emails to three WHOIS contact mailboxes associated with the domain: domain registrant, technical contact, and administrative contact. ACM will continue to send validation e-mails to the five common system administrator addresses. These are administrator@your_domain_name, hostmaster@your_domain_name, postmaster@your_domain_name, webmaster@your_domain_name, admin@your_domain_name Action required from you: If you currently monitor one of the five system administrator addresses for these certificates, no additional action is required from you. ACM strongly recommends that you create new DNS-validated certificates rather than email validated certificates. With DNS-validated certificates, you get the benefit of managed renewal as ACM can automatically renew a DNS-validated certificate as long as the CName is accurately configured [2]. Alternatively, if you would like to continue using email-validated certificates, you will need to configure and monitor at least one of the five system administrator addresses listed above for validation email. The validation emails are sent during certificate issuance for new certificates and during renewal of existing certificates. For renewals, ACM sends the first validation email when the certificate is 45 days from expiry. You can use ACM's describe-certificate [3] API or check the certificate details on the ACM console to see if validation emails were previously sent to the five system administrator addresses. As a best practice, you can employ ACM's "ACM Certificate Approaching Expiration" events to monitor your certificates [4] for expiry and ensure you act on certificates that require an action from you to renew. Why are we making this change? Due to changes in privacy regulations and domain registrar practices, the success rate for accessing WHOIS contacts has steadily decreased over the past several years, reaching less than 5%. Due to this, customers who rely solely on certificate renewal via e-mail sent to their WHOIS email addresses could miss those notices, which could lead to certificate expirations and availability risks. For more details, please refer to our AWS Security blog post [5]. If you have any questions or concerns, please reach out to AWS Support [6]. [1] https://docs.aws.amazon.com/acm/latest/userguide/email-validation.html [2] https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html [3] https://docs.aws.amazon.com/cli/latest/reference/acm/describe-certificate.html [4] https://docs.aws.amazon.com/acm/latest/userguide/supported-events.html [5] https://aws.amazon.com/blogs/security/aws-certificate-manager-will-discontinue-whois-lookup-for-email-validated-certificates [6] https://aws.amazon.com/support
3.メール(AWS通知)を確認した結果
3-1.前置き部分を確認した結果
まず、最初の段落です。
今回の仕様変更まではWHOISデータベースから見つけたメールアドレスで認証しているひとに連絡しているよって言ってますね。
We are reaching out to you as you have at least one e-mail validated public certificate[1] issued through AWS Certificate Manager(ACM) that was validated using an email address registered with the WHOIS lookup of the domain.
(引用元)AWSさんからの[Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses
じゃぁ、そのメアドってどれだ?って思って、PSI-japanさんのサイトでWHOIS情報を検索してみました。
(1)PSI-japanさんのサイトにアクセスする(以下のURL)。
(2)以下にようにドメインを入力後、「Submit」をクリックする。

(3)出力結果から、メールアドレスを探す
以下のように、我らeyeonのメールアドレスが表示されていました。
Domain Name: K-FRIENDLY.COM
<<出典: https://web-whois.psi.jp/>>
~~~中略~~~
Registrant Email: XXXXXXX-eyeon@knet.co.jp
(4)じゃぁ、上記のメールアドレスでほんとに「validated using an email address 」されているの?ってことで過去のメールを漁ってみます。
⇒先ほどChromeで確認した証明書の発行日のころに、ちゃんと届いてました。
他のeyeonメンバがこっそり証明書を更新していたようです。

(5)次に以下を見てみます。AWS Health Dashbordを見れば、影響するリソースが分かるよって言ってますね。
A list of your affected certificate(s) can be found in the ‘Affected resources’ tab of your AWS Health Dashboard.
(引用元)AWSさんからの[Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses
実際にAWS Health Dashbordも見てみました。
k-friendly.comと、www.k-friendly.comの2つのFQDNの証明書が対象(Affected resources)ですね。

(6)以下は補足説明っぽい内容ですね。対処としてはスルーでよさそうです。
でも、今回のAWSさんの仕様変更の理由が書いてありますね。
(EUさんの規制の影響が契機だと思いますが)WHOIS情報からメールアドレスとかの連絡先情報を確認できなくなったって言っていますね。
WHOIS is a public service operated by domain registrars to provide ownership and contact information for a domain. For privacy reasons almost all domain registrars have removed contact information from WHOIS.
(引用元)AWSさんからの[Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses
3-2.肝心な部分を確認した結果
何が変わるの?(What is Changing?)を読むと以下のとおりです。
メール検証で証明書を更新していた場合は一大事ですね。
・2024年6月から新規の証明書に、2024年10月からは既存の証明書が対象だよ。
・このタイミングで、ACMはWhoisデータベースに記載の連絡先に、検証依頼のメールの送信を止めるよ
で、後段の対処しなよ!(Action required from you)を読むと以下のとおりです。
対処が必須じゃない5つのアドレスってのが気になりますね。
・the five system administrator addressesにてメール検証しているなら対処は必須じゃないよ
・でも、ACMとしてはDNS検証を激しく推奨するよ
・DNS検証だと自動化されるから便利だよ
What is Changing?
Starting June 2024 for new certificates and Oct 2024 for existing certificates, ACM will stop sending validation emails to three WHOIS contact mailboxes associated with the domain: domain registrant, technical contact, and administrative contact.ACM will continue to send validation e-mails to the five common system administrator addresses.
These are administrator@your_domain_name, hostmaster@your_domain_name, postmaster@your_domain_name, webmaster@your_domain_name, admin@your_domain_name
Action required from you:
If you currently monitor one of the five system administrator addresses for these certificates, no additional action is required from you.ACM strongly recommends that you create new DNS-validated certificates rather than email validated certificates.
With DNS-validated certificates, you get the benefit of managed renewal as ACM can automatically renew a DNS-validated certificate as long as the CName is accurately configured [2].
(引用元)AWSさんからの[Action may be required] ACM will stop sending domain validation e-mails to WHOIS email addresses
4.図化してみました
これまで書いた説明を図化してみました!
1枚目は、DNS検証のご説明です。
2枚目は、メール検証のご説明です。
3枚目は、今回廃止となる「stop sending domain validation e-mails to WHOIS email addresses」のご説明です。



5.対策
冒頭に書いた通りです!
(1)メール検証の場合、以下のアドレスで受信しているかご確認ください。
YESの場合は対処不要です。
でも、DNS検証への変更がおススメです!
・admin@your_domain_name
・administrator@your_domain_name
・hostmaster@your_domain_name
・postmaster@your_domain_name
・webmaster@your_domain_name
(your_domain_nameは、k-friendly.comのような実際のドメイン名に読み替えくださいませ)
(2)上記(1)がNoの場合は、DNS検証に変更くださいませ(新たにDNS検証で証明書を作成くださいませ)
以下のステキなブログを見つけましたので是非やってみてくださいませ。
・ 【手順】DNS検証の証明書を作成してALBに反映する
X.eyeonの宣伝
今更なブログを長々と書きました。
とは言えお困りの方がいらっしゃいましたら&少しでもお役立ちできたらうれしく思います。
こういうのはメンドイよ!って場合はぜひ、AWSインフラの構築、監視、運用のすべて、またはどれかをeyeonにお任せいただけると嬉しいです!
- お問い合わせフォームはこちらです。新規申し込みフォームはこちらです。eyeonのサービスのご紹介としては、以下をご笑覧くださいませ。
- AWS導入支援&構築eyeonプレミアム
以下のeyeon内のブログでも、eyeonのサービス内容についてご紹介しております。
- AWS導入支援&構築eyeonプレミアム
- お客様とeyeonチームの役割分担(AWS導入支援・構築)
- お客様とeyeonチームの役割分担(eyeonプレミアム)
- 「eyeonプレミアム」のサービス紹介:脆弱性チェック(AWS設定、AWS操作、サーバOS、マルウェアとか)
- 「eyeonプレミアム」のサービス紹介:AWSアカウント運用代行