Change default JSSE provider on a Spring Boot project - Stack Overflow

admin2025-04-26  6

Since it's 2025 and Java is still not supporting ED25519 encryption for HTTP connections, i wanted to change my default provider to Bouncy Castle for my Spring Boot project. Sadly it is NOT enough to statically import the new providers:

static {
    Security.addProvider(new BouncyCastleProvider());
    Security.addProvider(new BouncyCastleJsseProvider());
}

The Webserver (default: Tomcat) is not using the new provider. Therefore the question: Is there an easy way to just change the default JSSE Provider from SunJSSE to BCJSSE?

转载请注明原文地址:http://anycun.com/QandA/1745637827a91051.html