gladtbam@VM-8-5-ubuntu:~$ sudo lnmp vhost add [sudo] password for gladtbam: +-------------------------------------------+ | Manager for LNMP, Written by Licess | +-------------------------------------------+ | https://lnmp.org | +-------------------------------------------+ Please enter domain(example: www.lnmp.org): e5.gladtbam.top //输入域名 Your domain: e5.gladtbam.top Enter more domain name(example: lnmp.org *.lnmp.org): Please enter the directory for the domain: e5.gladtbam.top Default directory: /home/wwwroot/e5.gladtbam.top: Virtual Host Directory: /home/wwwroot/e5.gladtbam.top Allow access log? (y/n) y Enter access log filename(Default:e5.gladtbam.top.log): You access log filename: e5.gladtbam.top.log Please enter Administrator Email Address: xxxxxxxxxxxx@qq.com Server Administrator Email:xxxxxxxxxxxx@qq.com Create database and MySQL user with same name (y/n) y Enter current root password of Database (Password will not shown): OK, MySQL root password correct. Enter database name: name Your will create a database and MySQL user with same name: custom_mysql_name Please enter password for mysql user e5renewx: password Your password: password Add SSL Certificate (y/n) y 1: Use your own SSL Certificate and Key 2: Use Let's Encrypt to create SSL Certificate and Key 3: Use BuyPass to create SSL Certificate and Key 4: Use ZeroSSL to create SSL Certificate and Key Enter 1, 2, 3 or 4: 1 //选择1 输入在 OHTTPS 申请的 SSL 证书(手动传到服务器) Please enter full path to SSL Certificate file: /usr/local/nginx/conf/ssl/gladtbam.top/gladtbam.top.cer //证书和中间证书 fullchain.cer Please enter full path to SSL Certificate Key file: /usr/local/nginx/conf/ssl/gladtbam.top/gladtbam.top.key //私钥 cert.key Press any key to start create virtul host... Create Virtul Host directory...... set permissions of Virtual Host directory...... Test Nginx configure file...... nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful Reload Nginx...... Test Apache configure file... test apache configure... Syntax OK done Restart Apache... graceful apache... done Add database Sucessfully. Test Nginx configure file...... nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful Reload Nginx...... ================================================ Virtualhost infomation: Your domain: e5.gladtbam.top Home Directory: /home/wwwroot/e5.gladtbam.top Enable log: yes Database username: name Database userpassword: password Database Name: name Create ftp account: no Enable SSL: yes =>Certificate file ================================================
System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date. To generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'. For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.