我使用的是ubuntu20.04+nginx 1.18
nginx.conf在/etc/nginx
默认首页配置文件在/etc/nginx/sites-available
默认首页素材路径在/var/www/html
另记录ssl证书格式转换方法:
查看.keystore文件信息(下划线内容需要替换)
keytool -list -v -keystore xxxx.keystore
转换文件在同一目录下执行命令
Keystore转P12(下划线内容需要替换)
keytool -importkeystore -srcstoretype JKS -srckeystore xxxx.keystore -srcstorepass xxxxxx -srcalias xxxxalias -srckeypass xxxx -deststoretype PKCS12 -destkeystore xxxx.p12 -deststorepass xxxxx -destalias xxxxalias -destkeypass xxxxx -noprompt
P12转jks(下划线内容需要替换)
keytool -v -importkeystore -srckeystore xxxx.p12 -srcstoretype PKCS12 -destkeystore xxxx.jks --alias xxxx -deststoretype JKS
jks转pem(下划线内容需要替换)
keytool -export -rfc -keystore xxxx.jks --alias xxxx -file