Keytool:什么值可以用于 storetype

Keytool: What values may be used for the storetype

当使用Java11时,storetype参数可以使用什么值给keytoolonline documentation 给出了一些示例,但没有说明所有有效值是什么。

有没有办法让 keytool 列出支持的商店类型?

它直接转移到KeyStore.getInstance(storetype)参数中(你可以see here)。

基本上在 JDK11 中它是来自 the Javadoc

的 oracle 实现
  • jceks
  • jks
  • dks
  • pkcs11
  • pkcs12

在 Windows-System 上运行的 KeyTool 中还有两个实现:Windows-MY 和 Windows-ROOT。