Learn about Centmin Mod LEMP Stack today
Register Now

Letsencrypt add subdomain to the ssl certificate of an already existent domain

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Kintaro, May 3, 2020.

  1. Kintaro

    Kintaro Member

    79
    5
    8
    Dec 2, 2016
    Italy
    Ratings:
    +19
    Local Time:
    8:44 AM
    1.15.x
    MariaDB 10
    Hello locked-down fellows :doctor:,

    some years ago I asked this:
    Letsencrypt - multiple top level domains in a single webroot

    Now, can I do the same thing if I want to add a subdomain instead of a top-level domain to the same webroot?

    I want to add Nextcloud to an existent vhost, I want to install it in a webroot subdir and I would like to give it "cloud.domain.com".

    Need I simply have to follow the directions for multiple toplevel domains up here and instead of domain2.com add cloud.domain.com?

    I would like to use a single Nginx configuration (or do you suggest against it?).
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,184
    10,072
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,570
    Local Time:
    4:44 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yeah you should be able to do the same again just backup /usr/local/nginx/conf/ssl/yourdomain.com directory which has existing Letsencrypt SSL certs just in case.