SSL Certificate on 2 Domains

My domain is:

I ran this command: ./certbot-auto

It produced this output:

My operating system is (include version): Debian 8 Jessie

My web server is (include version): Apache2

My hosting provider, if applicable, is: Webtropia

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

So, I wanted to activate an SSL certificate on but I could only choose “” and I don’t know how to fix that. I’d like to have the SSL on my main Domain “

~ asdf1414

using it is “auto” like that it will read whatever vhosts you have in your apache config … do you have a vhost for ?

If not, you can always use webroot or one of the other methods to define exactly which domains you want certificates for

How do I actually do that. I don’t know any commands except of ./certbot-auto :’)
And I don’t use any vhosts

The documentation is at User Guide — Certbot 2.7.0.dev0 documentation

You can use something like

certbot certonly --webroot -w /var/www/ -d -w /var/www/mail -d

if your main is in /var/www and is in /var/www/mail

It’s telling me "-bash: certbot : Command not found
I installed certbot before with this commands
because It wasn’t working with the Installation guide for Debian 8.

It depends how you installed it.

Try putting the two characters “./” in front of the command ( so it’s ./certbot ) in the same folder as you installed certbot. If that fails, try with certbot-auto or let us know how you installed it.

It’s not working with ./certbot…
And certbot-auto was the first command I tried with.
And how I installed: See upper post

In the first post you said you used "./certbot-auto" not just certbot-auto hence why I asked you to (in the same directory) run it with the ./ on the front

so I made 2 suggestions in the previous post

./certbot certonly --webroot -w /var/www/ -d -w /var/www/mail -d


./certbot-auto certonly --webroot -w /var/www/ -d -w /var/www/mail -d

did they both fail ?

By "how you installed it?" I mean did you install using apt ? git ? copyting the file with wget or curl ? .. how specifically did you install certbot ?

Yes, they both failed and I used wget

what directory were you in when you did the “wget” ? you need to go to that same directory

Yes. I installed it in ~/build and also used the commands where I’ve been in this directory

well the ./certbot-auto command ran for you earlier - so it seems odd that it can’t now find that file to run. Have you deleted anything ?

No, I didn’t delete anything

then it should still be there. What does running “ls -l ~/build/” give ?

total 4
drwxrwxr-x 12 root root 4096 Feb 15 11:42 mailcow-0.14

Thats in the mailcow directory:
dovecot installer.log LICENSE opendkim roundcube
fuglu mailcow.config postfix spamassassin
includes letsencrypt-sh misc webserver

does “whereis certbot” or “whereis certbot-auto” give an answer ?

whereis certbot gives me:

and the other gives me the same just with certbot-auto

At the moment then it doesn’t appear as if you have installed certbot fully - it’s probably worth following the instructions at to install it

The commands to install it for Debian 8 are not working, the first is giving me out:

E: The value ‘jessie-backports’ is invalid for APT::Default-Release as such a release is not available in the sources

So then I installed with the commands for Debian 7 and I could use ./certbot-auto

@serverco, the original screenshot shows that certbot-auto is fully installed and working somewhere on the system… I think it’s still a question of figuring out where!

One option would be

find ~ -type f -name certbot-auto

That should make clear where it is. :slight_smile: