Adding a second SSL certificate to existing VPS

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command: sudo certbot certonly --cert-name --key-type rsa --webroot -w /var/www/html -d -d -d -d

It produced this output: Invalid response from 404
My web server is (include version): vps ubuntu 22.04 nginx

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: hostinger

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

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0

Hi @aaureli, and welcome to the LE community forum :slight_smile:

Since this is going to be a second cert, let's review the current cert status.
Please show:

sudo certbot certificates

Please also verify:

  • all names resolve to the expected IP address(es)
  • that HTTP access is allowed


That is NOT the recommended version for:

Please follow the installation guide:

Certbot (


Thanks @rg305 for your reply. Here are the results :

Found the following certs:
  Certificate Name:
    Serial Number: 403b20bc5dc656b854744120f86a73edb5d
    Key Type: ECDSA
    Expiry Date: 2023-12-25 14:56:00+00:00 (VALID: 52 days)
    Certificate Path: /etc/letsencrypt/live/
    Private Key Path: /etc/letsencrypt/live/

Whats certbot version I should use for ubuntu 22.04 ?

It is currently 2.7.4
[available via snap]


There are a couple of "things" that make that request less than optimal:

  • the request is for an RSA cert
    the current cert uses ECDSA:
    Key Type: ECDSA
    that is not a problem - the problem is that you are requesting the exact same cert name
    should this request succeed, it would replace/delete the current cert with that exact same name:
    Certificate Name:

  • the request asks for four names:
    -d -d -d -d
    but both names are repeated twice, that should be only two names: -d -d


can not install certbot from snap I got : system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/syscheck-mountpoint-726408326: mount failed: Operation not permitted.
so I installed with apt-get simply, so the version is old...

1 Like

I resolved ! Thanks for your kind help @rg305


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