问题描述
我正在查看Jetty的SSL: http://wiki.eclipse.org/Jetty/参考/SSL_Connectors
I am looking at SSL for Jetty: http://wiki.eclipse.org/Jetty/Reference/SSL_Connectors
keyStorePassword和keyManagerPassword都有属性.我想keyManagerPassword由Javax KeyManager使用,所以密钥存储中恢复密钥的密码是什么?
There are properties for both keyStorePassword and keyManagerPassword.I suppose the keyManagerPassword is used by a Javax KeyManager, and sois a password for recovering keys from the key store?
那么keyStorePassword和keyManagerPassword那么通常具有相同的值吗?
So do keyStorePassword and keyManagerPassword then generally have the same value?
推荐答案
密钥管理工厂确实有密码.
Keymanagerfactory does have a password.
hmmm,这些API已有一段历史和发展,也许可以使它们变得更清晰.
hmmm it is a little history and evolution in these APIs and they could perhaps be made clearer.
keyManagerPassword作为密码arg传递给KeyManagerFactory.init(...)如果没有keymanagerpassword,则使用keystorepassword代替.如果未设置任何信任管理器,则将密钥库用作信任库,并将密钥库密码用作信任库密码.
The keyManagerPassword is passed as the password arg to KeyManagerFactory.init(...)If there is no keymanagerpassword, then the keystorepassword is used instead.If there is no trustmanager set, then the keystore is used as the trust store and the keystorepassword is used as the truststore password.
这篇关于Jetty中的keyStorePassword和keyManagerPassword有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!