Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple domains? #26

Closed
robotanarchy opened this issue Nov 18, 2015 · 1 comment
Closed

Multiple domains? #26

robotanarchy opened this issue Nov 18, 2015 · 1 comment

Comments

@robotanarchy
Copy link

Hello,

what would be the syntax to create a working certificate sign request for multiple domains?
For example: github.com, *.github.com

It would be nice if you could add this to the example usage.

Thanks 馃憤

@diafygi
Copy link
Owner

diafygi commented Nov 18, 2015

I do: https://github.com/diafygi/letsencrypt-nosudo#how-to-use-the-script

#Alternatively, if you want both example.com and www.example.com
openssl genrsa 4096 > domain.key
openssl req -new -sha256 -key domain.key -subj "/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:example.com,DNS:www.example.com")) > domain.csr

NOTE: Let's Encrypt doesn't allow wildcard domains, so if you include one in your subjectAltName, Let's Encrypt will reject it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants