如何使用 keytool 列出存储在 PKCS12 密钥库中的证书? [英] How to list the certificates stored in a PKCS12 keystore with keytool?

查看:52
本文介绍了如何使用 keytool 列出存储在 PKCS12 密钥库中的证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出存储在 PKCS12 密钥库中的证书.

I wanted to list the certificates stored in a PKCS12 keystore.

密钥库的扩展名为 .pfx

推荐答案

如果 keystore 是 PKCS12 类型 (.pfx) 你必须用 -storetype PKCS12 指定它(为便于阅读添加了换行符):

If the keystore is PKCS12 type (.pfx) you have to specify it with -storetype PKCS12 (line breaks added for readability):

keytool -list -v -keystore <path to keystore.pfx> 
    -storepass <password> 
    -storetype PKCS12

这篇关于如何使用 keytool 列出存储在 PKCS12 密钥库中的证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆