keytool使用BouncyCastle作为安全提供程序来添加X509证书

此命令使用BouncyCastle作为安全提供程序将证书文件cert.pfx导入密钥库文件。
它使用 - OpenJDK Runtime Environment(Zulu 8.36.0.1-CA-linux64)
 - Java(TM)SE运行时环境(版本1.8.0_192-ea-b04)
 - OpenJDK运行时环境(版本9.0.4 + 11)验证
 - OpenJDK运行时环境18.9(版本11.0.2 + 9)
.

0

linux命令: keytool -importcert -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -trustcacerts -alias <alias> -file <filename.cer> -keystore <filename> <filename> -keystore <filename.cer> -file <alias> -alias -trustcacerts BCPKCS12 -storetype org.bouncycastle.jce.provider.BouncyCastleProvider -provider bcprov-jdk15on-1.60.jar -providerpath -importcert keytool keytool -importcert -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -trustcacerts -alias <alias> -file <filename.cer> -keystore <filename>rootopen.com
linux命令: keytool -importcert -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -trustcacerts -alias <alias> -file <filename.cer> -keystore <filename> <filename> -keystore <filename.cer> -file <alias> -alias -trustcacerts BCPKCS12 -storetype org.bouncycastle.jce.provider.BouncyCastleProvider -provider bcprov-jdk15on-1.60.jar -providerpath -importcert keytool keytool -importcert -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -trustcacerts -alias <alias> -file <filename.cer> -keystore <filename>rootopen.com
vojg 2019-02-25 22:35:20
输出
keytool -importcert \
    -providerpath bcprov-jdk15on-1.60.jar \
    -provider org.bouncycastle.jce.provider.BouncyCastleProvider \
    -storetype BCPKCS12 \
    -storepass <passphase> \
    -trustcacerts \
    -alias 'aliascert' \
    -file <filename.cer> \
    -keystore keystore
Owner: SERIALNUMBER=XXXXXXXXXX, OU=XXXX, OU=XX, O=XXXXXXXX, C=XX
Issuer: O=XXXXXXX, C=XX
Serial number: XXXXXXXX
...
...
Trust this certificate? [no]:  yes
Certificate was added to keystore

评论

相关推荐

此命令使用BouncyCastle作为安全提供程序将密钥库文件cert.pfx导入密钥库文件。 - OpenJDK Runtime Environment(Zulu 8.36.0.1-CA-linux64) - Java(TM)SE运行时环境(版本1.8.0_192-ea-b04) - OpenJDK运行时环境(版本9.0.4 + 11)验证 - OpenJDK运行时环境18.9(版本11.0.2 + 9)

linux命令:keytool -importkeystore -providerpath bcprov.jar -provider BouncyCastleProvider -srckeystore <filename.pfx> -srcstoretype pkcs12 -srcalias <src-alias> -destkeystore <filename.ks> -deststoretype BCPKCS12 -destalias <dest-alias> <dest-alias> -destalias BCPKCS12 -deststoretype <filename.ks> -destkeystore <src-alias> -srcalias pkcs12 -srcstoretype <filename.pfx> -srckeystore BouncyCastleProvider -provider bcprov.jar -providerpath -importkeystore keytool keytool -importkeystore -providerpath bcprov.jar -provider BouncyCastleProvider -srckeystore <filename.pfx> -srcstoretype pkcs12 -srcalias <src-alias> -destkeystore <filename.ks> -deststoretype BCPKCS12 -destalias <dest-alias>rootopen.com
linux命令:keytool -importkeystore -providerpath bcprov.jar -provider BouncyCastleProvider -srckeystore <filename.pfx> -srcstoretype pkcs12 -srcalias <src-alias> -destkeystore <filename.ks> -deststoretype BCPKCS12 -destalias <dest-alias> <dest-alias> -destalias BCPKCS12 -deststoretype <filename.ks> -destkeystore <src-alias> -srcalias pkcs12 -srcstoretype <filename.pfx> -srckeystore BouncyCastleProvider -provider bcprov.jar -providerpath -importkeystore keytool keytool -importkeystore -providerpath bcprov.jar -provider BouncyCastleProvider -srckeystore <filename.pfx> -srcstoretype pkcs12 -srcalias <src-alias> -destkeystore <filename.ks> -deststoretype BCPKCS12 -destalias <dest-alias>rootopen.com
.

此命令使用BouncyCastle作为安全提供程序列出密钥库中所有证书的指纹

linux命令:keytool -list -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -storepass <passphrase> -keystore <filename> <filename> -keystore <passphrase> -storepass BCPKCS12 -storetype org.bouncycastle.jce.provider.BouncyCastleProvider -provider bcprov-jdk15on-1.60.jar -providerpath -list keytool keytool -list -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -storepass <passphrase> -keystore <filename>rootopen.com
linux命令:keytool -list -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -storepass <passphrase> -keystore <filename> <filename> -keystore <passphrase> -storepass BCPKCS12 -storetype org.bouncycastle.jce.provider.BouncyCastleProvider -provider bcprov-jdk15on-1.60.jar -providerpath -list keytool keytool -list -providerpath bcprov-jdk15on-1.60.jar -provider org.bouncycastle.jce.provider.BouncyCastleProvider -storetype BCPKCS12 -storepass <passphrase> -keystore <filename>rootopen.com
.
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

推荐
    热门命令