参考网上的方法,或者直接用老师后面的方法,就是不用输入密码那种,貌似是可以。
步骤1:openssl genrsa -des3 -out ca.key 2048
步骤2:openssl rsa -in ca.key -out ca.key
步骤3:openssl req -new -key zhaoy6.key -out ca.csr
步骤4:openssl x509 -req -days 3650 -in ca.csr -signkey ca.key -out ca.crt
步骤5:
nginx -tc /etc/nginx/nginx.conf
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful