Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Thursday, February 3, 2011

javax.net.ssl.SSLKeyException due to certificate check by wls in ADF 11g

I was working on some facebook apis for trying http://www.restfb.com java framework and got below exceptions from wls:


javax.net.ssl.SSLKeyException: [Security:090504]Certificate chain received from ****** graph.facebook.com failed hostname verification check. Certificate contained *.facebook.com but check expected graph.facebook.com



If you are getting this error then you can set the wls to ignore the certificate check by adding

-Dweblogic.security.SSL.ignoreHostnameVerification=true

to your run/debug/profile of view controller properties. It should work.



2 comments:

Anonymous said...

Great Tip ! Thanks a lot !

sree said...

we should not doe this in the production environment, this tip is suggestable only in the development or local environments