编程语言/keystore:修订间差异
来自康健生活
< 编程语言
无编辑摘要 |
无编辑摘要 |
||
| 第2行: | 第2行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
openssl pkcs12 -export -in _.bingo.qihoo.net.crt -inkey ../_.bingo.qihoo.net.key -out bingo.p12</syntaxhighlight>|$|/home/kangkk}} | openssl pkcs12 -export -in _.bingo.qihoo.net.crt -inkey ../_.bingo.qihoo.net.key -out bingo.p12</syntaxhighlight>|$|/home/kangkk}} | ||
生成。 | |||
{{Shc_out|<syntaxhighlight lang="bash"> | {{Shc_out|<syntaxhighlight lang="bash"> | ||
keytool -importkeystore -v -srckeystore bingo.p12 -srcstoretype pkcs12 -srcstorepass 生成p12设置的密码 -destkeystore bingo.keystore -deststoretype jks -deststorepass 设置keystore的密码</syntaxhighlight>|<syntaxhighlight lang="bash">正在将密钥库 bingo.p12 导入到 bingo.keystore... | keytool -importkeystore -v -srckeystore bingo.p12 -srcstoretype pkcs12 -srcstorepass 生成p12设置的密码 -destkeystore bingo.keystore -deststoretype jks -deststorepass 设置keystore的密码</syntaxhighlight>|<syntaxhighlight lang="bash">正在将密钥库 bingo.p12 导入到 bingo.keystore... | ||
| 第12行: | 第12行: | ||
JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore bingo.keystore -destkeystore bingo.keystore -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。 | JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore bingo.keystore -destkeystore bingo.keystore -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。 | ||
</syntaxhighlight>|$|/home/kangkk}} | </syntaxhighlight>|$|/home/kangkk}} | ||
查看。 | |||
{{shc|<syntaxhighlight lang="bash"> | |||
keytool -v -list -keystore bingo.keystore</syntaxhighlight>|$|/home/kangkk}} | |||
2021年11月20日 (六) 15:53的最新版本
crt转keystore
/home/kangkk
openssl pkcs12 -export -in _.bingo.qihoo.net.crt -inkey ../_.bingo.qihoo.net.key -out bingo.p12
生成。
[jian@kang /home/kangkk]$
keytool -importkeystore -v -srckeystore bingo.p12 -srcstoretype pkcs12 -srcstorepass 生成p12设置的密码 -destkeystore bingo.keystore -deststoretype jks -deststorepass 设置keystore的密码
正在将密钥库 bingo.p12 导入到 bingo.keystore...
已成功导入别名 1 的条目。
已完成导入命令: 1 个条目成功导入, 0 个条目失败或取消
[正在存储bingo.keystore]
Warning:
JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore bingo.keystore -destkeystore bingo.keystore -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。
查看。
/home/kangkk
keytool -v -list -keystore bingo.keystore
No categories