Adding additional domains


#1

Hello,

I installed letsencrypt certificates using certbot but I only did sub.domain.com and not www.sub.domain.com

How can I add www.sub.domain.com?

Thanks


#2

Hi,

You don’t say exactly what command you ran before, so I can’t give the exact command, but basically you need to use the --expand flag and then include both the sub.domain.com and www.sub.domain.com - see https://certbot.eff.org/docs/using.html#re-running-certbot


#3

I followed instructions on Certbot for Apache, Ubuntu 16.04.

Do I do letsencrypt renew --expand www.sub.domain.com to add?


#4

There are many ways you could have run the command on ubuntu. You could have used auto, certonal, webroot etc

Can you tell me exactly what commands you did run to obtain the certificate, then I can tell you what modified command to use to expand the certificate


#5

I followed the command on this page


#6

which command ?

letsencrypt --apache

or

letsencrypt --apache certonly

did you then select a number of domains from a list ? …

What’s the domain name (or subdomain) you are trying to modify - maybe I can work backwords from tthe certificate to give you the command.


#7

letsencrypt --apache and only the summer subdominant I added shows up


#8

Do you have the www subdomain configured in your apache ? (if so it should have showed up )

You can try

letsencrypt --apache --expand -d sub,domain.com -d www.sub.domain.com

without knowing your exact detail though, I can’t be certain.


#9

What’s the difference between d and -d? Also what is the process to delete an added domain?


#10

a typo on my part - they should both be -d


#11

Why do I have to do -d sub.domain.com? Is it so that it stays?


#12

You have to specify all the domains you want on the certificate.

One of the reason I have repeatedly asked for the domain name & exactly how you set it up originally is so that I could provide the detail of command you required - hence, without that, I’m just guessing that you wanted the cert expanded for only the sub.domain.com and www.subdomain.com.


#13

Thanks a lot for your help <3


#14

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.