Use com.ibm.net.ssl.www2.protocol.https.Handler instead of com.sun.net.ssl.internal.www.protocol.https.Handler

MSAL

Do not use the com.sun.net.ssl.internal.www.protocol.https.Handler class.

org.openrewrite.java.migrate.JREDoNotUseSunNetSslInternalWwwProtocolHttpsHandler
mod run . --recipe=org.openrewrite.java.migrate.JREDoNotUseSunNetSslInternalWwwProtocolHttpsHandler

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change type com.sun.net.ssl.internal.www.protocol.https.Handler to com.ibm.net.ssl.www2.protocol.https.Handler