编程语言/keystore:修订间差异
来自康健生活
< 编程语言
创建页面,内容为“== crt转keystore == {{shc|<syntaxhighlight lang="bash"> openssl pkcs12 -export -in _.bingo.qihoo.net.crt -inkey ../_.bingo.qihoo.net.key -out bingo.p12</syntaxhighl…” |
无编辑摘要 |
||
| 第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"> | |||
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... | |||
已成功导入别名 1 的条目。 | |||
已完成导入命令: 1 个条目成功导入, 0 个条目失败或取消 | |||
[正在存储bingo.keystore] | |||
Warning: | |||
JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore bingo.keystore -destkeystore bingo.keystore -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。 | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
2021年11月20日 (六) 15:51的版本
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。
No categories