简体   繁体   English

如何使用AWS Certificate Manager验证域

[英]How to validate domain with AWS certificate manager

I own a domain that I purchased through GoDaddy. 我拥有通过GoDaddy购买的域名。 I am trying to get a certificate for this domain through AWS using Certificate Manager. 我正在尝试使用证书管理器通过AWS获取此域的证书。 If it's relevant, the purpose of obtaining a certificate is to be able to host a package repository on S3, using this tutorial: https://novemberfive.co/blog/opensource-pypi-package-repository-tutorial/ 如果相关,那么使用此教程,可以在S3上托管软件包存储库,从而获得证书: https : //novemberfive.co/blog/opensource-pypi-package-repository-tutorial/

So far I've been unable to validate my domain. 到目前为止,我一直无法验证我的域。 Let's call the domain foo.com I've attempted the following: 我们将以下域名称为foo.com:

  • Validate through DNS, I've created a CName with "repo.foo.com" as the "host" field in GoDaddy and "record name" as provided by AWS domain configuration file as the "points to" field on GoDaddy. 通过DNS验证,我在GoDaddy中创建了一个带有“ repo.foo.com”作为“主机”字段的CName,并将AWS域配置文件提供的“记录名称”作为GoDaddy上的“指向”字段创建了一个CName。
  • Also tried same as above, but with "record value" as provided by AWS in the "points to" field on GoDaddy. 也尝试与上述相同,但是使用AWS在GoDaddy上的“指向”字段中提供的“记录值”。 All AWS says is "Create a CNAME record in the DNS configuration for each of the domains listed below. " and then there's a DNS configuration file you can download with "record name" and "record value" and "domain name". 所有AWS都说:“在DNS配置中为下面列出的每个域创建一个CNAME记录。”然后有一个DNS配置文件,您可以下载“记录名称”,“记录值”和“域名”。 So how to map what values to what is not at all clear to me. 因此,如何将什么价值映射到什么都不是我清楚的事情。 Neither of these above approaches have worked. 以上两种方法均无效。
  • Validation through email. 通过电子邮件进行验证。 I've checked the email address that I used to register the domain, and created an email address for the domain and checked that. 我已经检查了用于注册域的电子邮件地址,并为该域创建了一个电子邮件地址并进行了检查。 Neither have received emails. 都没有收到电子邮件。
  • I've looked at about 5 tutorials. 我看了大约5个教程。 They all used email validation, and didn't specify what email address they used or how AWS knew that that was the email "associated" with the domain (what does "associated with" mean, exactly? Signup email? website email? Neither of these have worked). 他们都使用电子邮件验证,没有指定他们使用的电子邮件地址,或者AWS如何知道那是与域“关联”的电子邮件(“关联”到底是什么?注册电子邮件?网站电子邮件?这些都有效)。

Please help? 请帮忙? How do I validate? 如何验证?

As you mentioned are two types of domain validation for issuing SSL certs. 正如您所提到的,用于发行SSL证书的两种域验证类型。

DNS: DNS:

With DNS, you need to create CNAME record. 使用DNS,您需要创建CNAME记录。 How to create CNAME record with godaddy, 如何使用Godaddy创建CNAME记录,

https://www.godaddy.com/help/add-a-cname-record-19236 https://www.godaddy.com/help/add-a-cname-record-19236

Once you create DNS record, you may have to wait for DNS propagation. 创建DNS记录后,您可能必须等待DNS传播。 Usually the max time is 48 hours. 通常,最长时间为48小时。

Alternatively, if you are going to use this domain fully with AWS, you can create a NS recordset in Route 53 with AWS and have your DNS more reliable. 或者,如果您打算将该域完全与AWS结合使用,则可以在Route 53中与AWS一起创建NS记录集,并使DNS更可靠。

A more detailed documentation on DNS setup for SSL Certs, 有关SSL证书的DNS设置的更详细的文档,

https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html

Email: 电子邮件:

Usually email will be sent to whois record of your domain and emails to the following addresses in the domain, 通常,电子邮件将发送到您的域的whois记录,电子邮件将发送到该域中的以下地址,

administrator@your_domain_name
hostmaster@your_domain_name
postmaster@your_domain_name
webmaster@your_domain_name
admin@your_domain_name

More info on email validation and if you encounter issues is well documented under, 有关电子邮件验证的更多信息,如果遇到问题,请参见以下内容,

https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html

Even with all the cases, sometimes the validation might fail. 即使在所有情况下,有时验证也可能失败。 You can open a support ticket and ask for help with AWS support. 您可以打开支持凭单,并寻求有关AWS支持的帮助。

Hope it helps. 希望能帮助到你。

It's so simple. 很简单 When you create the certificate ACM provide two option to validate. 创建证书时,ACM提供两个选项来进行验证。 If you opt email validation then you will get email on above said email id just click on it your domain will be verified. 如果您选择电子邮件验证,那么您将在上述电子邮件ID上方收到电子邮件,只需单击它即可验证您的域。 If you want DNS validation then use the below steps. 如果要进行DNS验证,请使用以下步骤。

  1. Under ACM click on DNS validation 在ACM下,单击DNS验证
  2. This will give you dns records file according to you domain name which you entered in the starting 这将根据您在开头输入的域名为您提供dns记录文件
  3. Download that file and you will see CNAME and value in .csv file 下载该文件,您将在.csv文件中看到CNAME和值
  4. Just copy the value from csv and create the cname under Route 53 and pasted that value under it 只需从csv复制值并在Route 53下创建cname并将其粘贴到它下面
  5. You will get gverified DNS with few second 您将在几秒钟内获得经过认证的DNS

Kannaiyan already provided details steps Kannaiyan已经提供了详细步骤

In a nutshell ( DNS validation method)- 简而言之(DNS验证方法)-

Step 1. Request Public certificate in Amazon Certificate manager ( ACM) 步骤1.在Amazon Certificate Manager(ACM)中请求公共证书

Step 2. Create CNAME record in Godaddy 步骤2.在Godaddy中创建CNAME记录

Here are screenshots from AWS ACM and Godaddy 这是AWS ACM和Godaddy的屏幕截图

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 AWS secrets manager 访问证书和密钥以用于 Gunicorn 配置 - Accessing Certificate and Key from AWS secrets manager to be used in Gunicorn configuration 如何使用python使用存储在Windows证书管理器中的证书 - How to use certificate stored in windows certificates manager using python 如何验证给定的 URL 是域或子域还是使用 python 的确切页面? - how to validate whether given URL is domain or sub domain or exact page using python? 如何使用 Python Lambda 的 AWS Secrets Manager 缓存? - How to use AWS Secrets Manager Caching for Python Lambda? 如何以编程方式验证 AWS lambda 和粘合作业状态 - How to validate AWS lambda and glue job status programatically 如何为 AWS Opensearch 域启用基于密码的身份验证? - How to enable password based authentication for AWS Opensearch Domain? 获取python应用程序访问存储在windows证书管理器中的证书 - Getting python application to access the certificate stored in windows certificate manager 如何使用 Boto3 从不同的 AWS 账户机密管理器获取所有机密? - How to get all secrets from a different AWS accounts secret manager with Boto3? AWS Secret Manager 有时会超时 - AWS secret manager time out sometimes 一个特定域的证书验证失败(_ssl.c:645)>” - certificate verify failed (_ssl.c:645)>” for one particuar domain
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM