使用 Java 密钥工具,我可以在 pkcs12 密钥库中添加多个密钥:
keytool -genkeypair -alias foo -keyalg rsa -dname "CN=Foo, OU=..., O=..., L=..., C=..." -storetype pkcs12 -keystore keystore.p12
keytool -genkeypair -alias bar -keyalg rsa -dname "CN=Bar, OU=..., O=..., L=..., C=..." -storetype pkcs12 -keystore keystore.p12
如何用 openssl pkcs12
做到这一点?