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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: domain.com
I ran this command:
It produced this output:
My web server is (include version): ngnix 1.18
The operating system my web server runs on is (include version): ubuntu 20.04.1
My hosting provider, if applicable, is: digital ocean
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):
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.40.0
i do not know the commands to make a SAN cert for 4 subdomains
login.domain.com
api.domain.com
listener.domain.com
my sequence to make SSL are
-
cd /etc/nginx/sites-available
-
in sites-available
i create a file www.domain.com
the file looks like this
server {
listen 80;
listen [::]:80;
server_name domain.com;
return 301 http://www.domain.com$request_uri;
}
server {
listen 80;
listen [::]:80;
server_name www.domain.com;
root /var/www/www.domain.com/;
client_max_body_size 100m;
access_log /var/log/nginx/www.domain.com-access.log;
error_log /var/log/nginx/www.domain.com-error.log;
index index.php index.html;
location ~ \.php$ {
try_files $uri $uri/ /index.php?$args;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
-
cd /etc/nginx/sites-enabled/
i link things
ln -sf /etc/nginx/sites-available/www.domain.com www.domain.com -
certbot --nginx