Re: How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-24 Thread Weihua JIANG
Finally get it to work. Code fragment is: MySSLSocketConnector connector = new MySSLSocketConnector(); connector.setPort(8082); //The code I missed in first version JettyHTTPServerEngine engine = f.createJettyHTTPServerEngine(8082, "http"); //reconfigure this engine to use https instead of http en

Re: How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-24 Thread Weihua JIANG
Hi Daniel, I tried your solution, but failed. It seems the server is not created at all. I can't connect to it either by browser or by wget. Below is my code: public class MySSLSocketConnector extends org.eclipse.jetty.server.ssl.SslSocketConnector { @Override protected SSLServer

Re: How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-21 Thread Daniel Kulp
On Thursday 21 October 2010 8:03:35 pm Weihua JIANG wrote: > Thank you Daniel. However, my question is: how to set > SSLServerSocketFactory at server side, not at client side? > > At client side, for TlsClientParameters, I know there is a > setSSLSocketFactory() method. However, I can't find solut

Re: How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-21 Thread Weihua JIANG
Thank you Daniel. However, my question is: how to set SSLServerSocketFactory at server side, not at client side? At client side, for TlsClientParameters, I know there is a setSSLSocketFactory() method. However, I can't find solution to set a SSLServerSocketFactory at server side. Thanks Weihua 2

Re: How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-21 Thread Daniel Kulp
On Thursday 21 October 2010 4:31:49 am Weihua JIANG wrote: > Hi all, > > I want to use Not-Yet-Commons-SSL to handle SSL certificates. So, I > prefer to use its SSLServerSocketFactory implementation for CXF > endpoint publish. However, I can't find any document or sample on how > to write code. >

How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-21 Thread Weihua JIANG
Hi all, I want to use Not-Yet-Commons-SSL to handle SSL certificates on server side. So, I prefer to use its SSLServerSocketFactory implementation for CXF endpoint publish. However, I can't find any document or sample on how to write code. Can anyone help me on this? Thanks Weihua

How to use custom SSLServerSocketFactory to publish endpoints?

2010-10-21 Thread Weihua JIANG
Hi all, I want to use Not-Yet-Commons-SSL to handle SSL certificates. So, I prefer to use its SSLServerSocketFactory implementation for CXF endpoint publish. However, I can't find any document or sample on how to write code. Can anyone help me on this? Thanks Weihua