diff --git a/src/java/com/wolfssl/provider/jsse/WolfSSLContext.java b/src/java/com/wolfssl/provider/jsse/WolfSSLContext.java index 5dd164ac..d272e338 100644 --- a/src/java/com/wolfssl/provider/jsse/WolfSSLContext.java +++ b/src/java/com/wolfssl/provider/jsse/WolfSSLContext.java @@ -539,7 +539,16 @@ protected SSLParameters engineGetSupportedSSLParameters() { WolfSSLDebug.log(getClass(), WolfSSLDebug.INFO, "entered engineGetSupportedSSLParameters()"); - return WolfSSLParametersHelper.decoupleParams(this.params); + SSLParameters supportedParams = + WolfSSLParametersHelper.decoupleParams(this.params); + + /* set cipher suites and protocols to all supported cipher suites and + protocols */ + supportedParams.setCipherSuites(WolfSSLUtil.sanitizeSuites( + WolfSSL.getCiphersIana())); + supportedParams.setProtocols(WolfSSLUtil.sanitizeProtocols( + WolfSSL.getProtocols())); + return supportedParams; } /**