Openssl Keytool list命令显示不正确的密钥库格式

Openssl Keytool list命令显示不正确的密钥库格式,openssl,keytool,pkcs#11,pkcs#12,jks,Openssl,Keytool,Pkcs#11,Pkcs#12,Jks,我正在使用以下命令以pkcs12格式创建密钥库: > openssl pkcs12 -export -in <cert> -inkey <key> -out mycert.p12 -name <name> -caname <caname> 它显示了类型JKS 当我明确指定密钥库的类型时,输出似乎是正确的: > keytool -list -keystore mycert.p12 -storetype pkcs12 Enter keys

我正在使用以下命令以
pkcs12
格式创建密钥库:

> openssl pkcs12 -export -in <cert> -inkey <key> -out mycert.p12 -name <name> -caname <caname>
它显示了类型
JKS

当我明确指定密钥库的类型时,输出似乎是正确的:

> keytool -list -keystore mycert.p12 -storetype pkcs12
Enter keystore password:  

Keystore type: PKCS12
Keystore provider: SunJSSE

当未指定
storetype
时,为什么
keytool
错误地显示密钥库的类型?这种行为对我来说似乎不正确,如果工具无法识别密钥库类型,则命令应该失败或不显示密钥库类型

您可能使用了比Java8U192更旧的keytool版本

有一个bug报告集也有同样的问题

我安装的JDK1.8.0_161也有同样的问题-在使用(当前)版本8u201后,密钥库类型显示正确

> keytool -list -keystore mycert.p12 -storetype pkcs12
Enter keystore password:  

Keystore type: PKCS12
Keystore provider: SunJSSE