CXF: set custom SSL-context vs. SSLSocketFactory
I tried Apache CXF for a SOAP client with special TLS/SSL requirements (certs, trusts, crypto, ...). I generate a SSL-context in method getSslCtx. This context works - I can successfully use it outside of CXF - e.g. HttpClient. Now I tried it for CXF: If I set it with setSSLContext it does not work. Get SSL errors like no SSL ctx set at all. SSLException - TlsFatalAlert - certificate unknown (46)... If I set it by setSSLSocketFactory it works without problems. Why is that?? I would expect both ways are ok. MyService service = new MyService (); MyServicePortType port = service.getMyServicePort
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.