jetty SSL如何与java密钥库和多个别名一起使用

问题描述 投票:2回答:1

在jetty的SSL配置中,我看到我们定义了密钥库的密码和密钥库的物理位置。

但是当我在密钥库上有多个别名时会发生什么? jetty SSL选择使用什么密钥库?

在我的java密钥库文件中,一个别名包含不受信任的证书,一个别名受信任。我如何告诉码头使用可信别名?

谢谢

java ssl jetty jks jsse
1个回答
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>
© www.soinside.com 2019 - 2024. All rights reserved.