Forum

letsencrypt clarification

Fred
3 May 2016, 17:42
Hi Hugo,
I need help clarifying something
The <hostname>
must be the first hostname for that virtual host. All other hostnames will
be used as alternative hostnames for the certificate.

So if I want a subdomain certificate, will having the following virtual host work?
virtual host {
Hostname = example.com, www.example.com, dev.example.com, ftp.example.com
}

Will that give me a certificate for
example.com
www.example.com
dev.example.com
ftp.example.com

Thank you
Hugo Leisink
3 May 2016, 17:45
Yes, you should use the following command:
./letsencrypt request example.com

which will give you a certificate valid for the hostnames example.com, www.example.com, dev.example.com and ftp.example.com
Fred
3 May 2016, 17:51
Cool thank you very much.
Does your script use the server hostname for the Common Name?
I'm asking because the ftp is on another server (same domain)
Hugo Leisink
4 May 2016, 18:18
Yes, it does.
This topic has been closed.