sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
Источник: https://www.8host.com/blog/sozdanie-ssl-sertifikata-na-nginx-v-ubuntu-14-04/
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
Источник: https://www.8host.com/blog/sozdanie-ssl-sertifikata-na-nginx-v-ubuntu-14-04/