在jetty的SSL配置中,我看到我们定义了密钥库的密码和密钥库的物理位置。
但是当我在密钥库上有多个别名时会发生什么? jetty SSL选择使用什么密钥库?
在我的java密钥库文件中,一个别名包含不受信任的证书,一个别名受信任。我如何告诉码头使用可信别名?
由于
答案 0 :(得分:0)
可以在jetty-ssl-context.xml中配置CertAlias属性。
<Configure id="sslContextFactory" class="org.eclipse.jetty.util.ssl.SslContextFactory">
...
<Set name="CertAlias"><Property name="jetty.keystore.alias" default="localhost"/></Set>
</Configure>