A
A
Alexey Nikolaev2019-01-15 22:23:37
Apache HTTP Server
Alexey Nikolaev, 2019-01-15 22:23:37

How to set up SSL for a subdomain?

Hello.
There is a site, site,com, and dev.site.com. Both refer to the same IP, respectively, I just made a virtual host for Apache, ServerName + pointed them to different folders on the server. But now the browser swears that the certificate is valid for only one address. Tried to do:

sudo certbot -a webroot -i apache -w /var/www/dev -d dev.site.com

This invalidates the certificate for site.com. And if you do
sudo certbot -a webroot -i apache -w /var/www/dev -d site.com

This will invalidate the certificate for dev.site.com. Wildcards cannot be used in the certificate, because this is LetsEncrypt.
How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
CHolfield, 2019-01-15
@CHolfield

get a wildcard certificate for *.site.com domain

V
Viktor Taran, 2019-01-15
@shambler81

5c3e3fd144ae0209370496.png
Cap all works there
At least tell me what certbot spits out to you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question