certificate - 如何使用 keytool 列出 PKCS12 keystore 中存储的证书?

标签 certificate ssl-certificate keystore pkcs#12

我想列出存储在 PKCS12 keystore 中的证书。

keystore 的扩展名为.pfx

最佳答案

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

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

关于certificate - 如何使用 keytool 列出 PKCS12 keystore 中存储的证书?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14375235/

相关文章:

security - 代码签名与加密

centos - 即使在 CentOS 8 上将 CA 证书添加到信任库后也会出现证书错误

android - Google Play 警告 : WebViewClient. onReceivedSslError 处理程序

java - 我的带有内置 ssl 证书的库如何也允许使用默认证书

ssl - 如何将证书链添加到 JKS

安卓自签名证书 : Trust anchor for certification path not found

authentication - 使用 Spring Boot/Spring Security 针对 LDAP 进行证书身份验证

Google Cloud Platform 上的 SSL 证书

android - 在哪里放置 keystore 文件在 Android 中?

ssl - 运行 Java 进程时隐藏 JKS keystore/truststore 密码