如何识别 .jks 是密钥库还是信任库?
How to identify whether the .jks is a keystore or a truststore?
我有一个 .jks 文件。如何识别它是 Keystore 还是 trust store?
没有太大区别,理论上您可以使用一个商店来实现两个目的;虽然不推荐..
但是,如果您使用 Java Keytool 来 -list
您存储的内容,Keystore 应该主要包含 PrivateKeyEntry
s 而 Truststore 应该主要包含 trustedCertEntry
s
密钥库:
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-1>, MMM dd, yyyy, PrivateKeyEntry,
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-2>, MMM dd, yyyy, PrivateKeyEntry,
信任库:
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-1>, MMM dd, yyyy, trustedCertEntry,
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-2>, MMM dd, yyyy, trustedCertEntry,
我有一个 .jks 文件。如何识别它是 Keystore 还是 trust store?
没有太大区别,理论上您可以使用一个商店来实现两个目的;虽然不推荐..
但是,如果您使用 Java Keytool 来 -list
您存储的内容,Keystore 应该主要包含 PrivateKeyEntry
s 而 Truststore 应该主要包含 trustedCertEntry
s
密钥库:
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-1>, MMM dd, yyyy, PrivateKeyEntry,
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-2>, MMM dd, yyyy, PrivateKeyEntry,
信任库:
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-1>, MMM dd, yyyy, trustedCertEntry,
Certificate fingerprint (SHA1): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
<alias-2>, MMM dd, yyyy, trustedCertEntry,