我如何完全限定我的域名?

我试图从GoDaddy添加SSL证书到我的服务器,每次生成CSR密钥并提交给GoDaddy时,我都会收到以下回复:“您必须使用完全限定的名作为高级证书请求。

我需要采取哪些措施来确保我的域名是完全合格的? 这也可能是我的服务器configuration方式的问题吗?

可能你把错误的数据带入了CSR一代的过程中。 您要保护的域的FQDN需要在CN字段中填写。

假设您使用的是linux和openssl,并且您希望获得SSL-Cert的域名是“www.mycooldomain.com”(带有www的SSL证书):

 $ openssl req -new -nodes -keyout mycooldomain_com.key -out mycooldomain_com.csr -newkey rsa:2048 

然后你打回车,并填写必填字段:

 Generating a 2048 bit RSA private key ....++++..... writing new private key to 'mycooldomain_com.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:CH State or Province Name (full name) [Some-State]:Bern Locality Name (eg, city) []:Bern Organization Name (eg, company) [Internet Widgits Pty Ltd]:Your Name / Company Organizational Unit Name (eg, section) []: Common Name (eg, YOUR name) []:www.mycooldomain.com Email Address []:[email protected] Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: 

我的国家是CH,我的国家是伯尔尼,伯尔尼也是伯尔尼,你或你的公司的名字,我的部分是空的,然后是通用名,你想保护的FQDN

完全合格的域名是指完整的域名。 例如,如果您要提交serverfault的请求,完全限定的域名将是“serverfault.com”。 它只是表示全名。 如果您正在讨论域中的特定服务器,FQDN将是服务器名称加上域。 例如Srv1.subdomain.domain.com或Srv1.domain.local。

你试图使用什么名字?

在它后面放一段时间 。 没有一段时间,它可以被解释为本地主机名。

 example.com -> example.com. 

没什么特别的。 假设您的域名是example.com那么不是example.com是一个完全限定的域名。 例如www.example.comsomething.example.com是一个。

您无需限定您的域名。 您需要使用完全合格的域名。 这意味着,您需要使用完整的DNS地址,包括主机名,任何子域(如果有的话),域名和tld,后面跟一个句点。 像这样的东西:

host.domain.com。

主机将是主机名,域将是域名,com将是tld。

有关更多信息,请尝试检查http://en.wikipedia.org/wiki/Fully_qualified_domain_name

在我的情况下,域注册godaddy。

我从那里挑选了整个域名并将其粘贴到控制台中。

 mydomain.com 

注意:

虽然Godaddy的文档说,你需要添加www.mydomain但没有奏效。