ssl - 为 Jetty 配置 SSL 密码套件

标签 ssl encryption jetty

我正在尝试为我的应用程序中的嵌入式 jetty 服务器设置允许的 ssl 密码套件。如果我在运行 sslscan 时出于某种原因只在 xml 文件设置中使用 SslContextFactory 的 IncludeCipherSuites 设置,它只会列出 TLSv1.2 的密码,而不是 TLSv1.1 或 TLSv1.0。我需要能够让 jetty 使用所有三个 TLS 版本。无论如何我可以为 Jetty 设置 IncludeCipherSuites 以便我可以正确设置列表。

最佳答案

Jetty 9.3.8 禁用了 SLOTH 易受攻击的密码,这些密码会阻止使用最新版本的 Chrome 进行正确加密(如果您重新启用 SLOTH 易受攻击的密码,您将看到 a broken padlock icon in Chrome)。

您需要设置一个 ${jetty.base}/etc/tweak-ssl.xml 并在您的 ${jetty.base}/start.ini

Note: you should be using a split ${jetty.home} and ${jetty.base} directory structure and not modifying the ${jetty.home} contents

记录在此处:https://www.eclipse.org/jetty/documentation/current/configuring-ssl.html#configuring-sslcontextfactory-cipherSuites

至于使用什么配置,由你决定。

知道排除胜过包含。如果密码套件被排除,则在包含列表中添加它不会启用它。

Also be aware, that the JVM itself is also disabling various old protocols and cipher suites, following the same guidelines and updated specs that Jetty is with regards to security. In the near future you'll have to also re-enable those ciphers and protocols at the JVM level.

关于ssl - 为 Jetty 配置 SSL 密码套件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36605484/

相关文章:

git - 想要使用 git bash 推送到 GitHub 时如何修复 SSL 证书错误?

SSL,连接不安全

sql-server - 如何找到 SSL 证书完整路径并在存储过程中使用以调用 API

sql - 加密 SQL Server 2008 r2 中现有表的列

java - 从 javascript 调用 java 方法

wordpress - 从 HTTP 重定向到 HTTPS 会重复 www

java - 获取已编译类的源代码

cocoa - 有没有好的 cocoa 库同时包含 salt 和 IV AES 加密?

java - 嵌入式 Jetty 和 Spring Web MVC

java - 如何在 Heroku 上使用 jetty-runner 增加 Jetty 线程池大小?