所以我要做的是将所有JKS条目从一个JKS密钥库导入到另一个JKS密钥库
$ keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore2.jks
Importing keystore keystore.jks to keystore2.jks...
Enter destination keystore password:
Enter source keystore password:
Entry for alias my-key successfully imported.
Import command completed: 1 entries successfully imported, 0 entries failed or cancelled
,它使我进入java.security.UnrecoverableKeyException: Cannot recover key
,这是正确的,因为这两个JKS密钥库获得了不同的密钥库密码和密钥密码。
如何正确团结他们?