如何配置 Spring Boot 2 WebFlux 以使用 SSL?

How to configure Spring Boot 2 WebFlux to use SSL?

我得到的只是javax.net.ssl.SSLHandshakeException: no cipher suites in common

这是重现该行为的方法:

这是我第一次将 SSL 添加到 Spring 引导应用程序,我认为一定有问题 - 但我不知道是什么。也许你们中的任何人都可以提供一些帮助?谢谢!

好的,事实证明您需要将密钥算法设置为 RSA 才能使这项工作正常进行。

keytool -genkeypair -keyalg RSA -keystore src/main/resources/keystore.jks