我正在尝试将受信任的证书导入Java cacerts密钥库,但我遇到了问题.我试图列出现有的可信证书,似乎密钥库没有密码保护.
$ keytool -list -keystore cacerts
Enter keystore password:
***************** WARNING WARNING WARNING *****************
* The integrity of the information stored in your keystore *
* has NOT been verified! In order to verify its integrity, *
* you must provide your keystore password. *
***************** WARNING WARNING WARNING *****************
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 76 entries
Run Code Online (Sandbox Code Playgroud)
我试图导入一个可信证书:
$ keytool -importcert -alias "JiraCert" -file /root/c9ssl.crt -keystore /etc/java-6-sun/security/cacerts
Enter keystore password:
Keystore password is …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下语法为网站中的某些图片的位置添加别名:
location ~/^apple-touch-icon(.*)\.png$ {
alias /opt/web_alpha/img/$1;
}
Run Code Online (Sandbox Code Playgroud)
是的,或者我在nginx的access.log中输入了其他东西我收到了这条消息:
"GET /apple-touch-icon.png HTTP/1.1"404 142
但在浏览器中它显示了索引页面
而且我对nginx中的别名和重写感到困惑,我应该使用它