Cannot access HTTPS from Weblogic

前端 未结 2 487
难免孤独
难免孤独 2020-12-15 12:46

I have a problem with Weblogic accessing an HTTPS server, I can access other HTTPS urls, like google or microsoft. The code that tries to connect to the url is:

<         


        
相关标签:
2条回答
  • 2020-12-15 13:27

    For me using -DUseSunHttpHandler=true works but I can't have this parameter, because then I have problems with restarting Managed Server on redeploy.

    This helped me:

    url = new URL(null,"https://yoururl.com",new sun.net.www.protocol.https.Handler());
    
    0 讨论(0)
  • 2020-12-15 13:46

    Eventually it worked by setting these in the Weblogic arguments:

    -DUseSunHttpHandler=true 
    -Dssl.SocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl 
    -Dssl.ServerSocketFactory.provider=sun.security.ssl.SSLSocketFactoryImpl
    

    As per these posts: https://stackoverflow.com/a/7276163 and https://community.oracle.com/thread/2523332

    0 讨论(0)
提交回复
热议问题