Re: [Axis2] How to deploy Axis2 in https

2010-01-28 Thread Amila Suriarachchi
On Sat, Dec 16, 2006 at 5:27 PM, Subash Devkota sdevk...@d2hawkeye.comwrote:

 Ruchith,

 My https configuration does not require client to authenticate itself.

 I have already included security in Axis2 with rampart. It works fine when
 axis server is hosted in http.
 But, when i hosted the same axis in https domain, the client can not
  connect to axis server.
 It throws nullPointerException.

 I used the same key that is used for https as client key in axis client
 (for testing purpose) and it worked properly without errors. But when I use
 self signed certificate in axis client, it does not work.

 The only configuration I changed for https was in axis2.xml file of web
 service client.

 transportSender name=
 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender


why this name is empty. isn't it https?

try with Axis2 1.5.1 which is the latest one.

thanks,
Amila.

parameter name=PROTOCOL
 locked=falseHTTP/1.1/parameter
parameter name=Transfer-Encodingchunked/parameter
   /transportSender

 Should I do any more configuration changes?

 The next question is, if i intend to use axis in https, should i need to
 configure rampart?

 Thanks
 Subash


 Ruchith Fernando wrote:

 How have you configured HTTPS at the service? (the servlet container
 axis2 is deployed). Does it require the client to authenticate itself
 with its certificate?

 if so you MUST add the client cert into the container's trust store
 and then configure the client's following JSSE properties properly.
 javax.net.ssl.keyStore
 javax.net.ssl.keyStoreType
 javax.net.ssl.keyStoreType

 However even if the HTTPS config of the container does not require
 client auth you MUST have the CA cert of the CA that signed the
 container's cert in your jre/lib/security/cacerts store or if it uses
 a self signed cert then you can override trust store config with the
 JSSE properties. Please see here for more information [1]

 Thanks,
 Ruchith

 [1] http://java.sun.com/products/jsse/install.html

 On 12/16/06, Subash Devkota sdevk...@d2hawkeye.com wrote:

 Hi all,

 I have problem deploying axis2 1.0 in https.

 I need to deploy my axis2 1.0 server over https application.

 I used following configuration in axis2.xml in client side.

transportSender name=
 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL
 locked=falseHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter
/transportSender


 The web service works well when i use it in http.  But when axis2 server
 is deployed in https, the client can not connect to server (axis2 1.0
 where web services is deployed).

 I am using self signed certificate in client side. I added the
 certificate of the client in https server's trusted certificate key
 store. But could not connect to server.

 It throws nullPointerException while trying to connect web service.

 I tried using CA certified key in the client side. In this case, it
 works.

 I need to connect to axis2 1.0 server deployed over https with client
 that has self signed certificate.

 Does any one knows how to configure the client for this?

 Thanks in advance.
 Subash


 PRIVACY NOTICE

 This email and any attachments may be confidential and/or privileged. Use
 of the information contained in this email by anyone other than the intended
 recipient is strictly prohibited. If you have received this email in error,
 please notify the sender by replying to this message and delete this email.

 -
 To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org
 For additional commands, e-mail: axis-user-h...@ws.apache.org





 -
 To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org
 For additional commands, e-mail: axis-user-h...@ws.apache.org




-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: [Axis2] How to deploy Axis2 in https

2010-01-26 Thread stevens_wu

Does anybody know how to deploy axis2.war to https port in geronimo 2.1?I
have deployed axis2.war to http port in geronomo 2.1. Any suggestions will
be appreciated.

Subash Devkota wrote:
 
 Hi all,
 
 I have problem deploying axis2 1.0 in https.
 
 I need to deploy my axis2 1.0 server over https application.
 
 I used following configuration in axis2.xml in client side.
 
   transportSender name=
 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender 
parameter name=PROTOCOL locked=falseHTTP/1.1/parameter
parameter name=Transfer-Encodingchunked/parameter
   /transportSender
 
 
 The web service works well when i use it in http.  But when axis2 server 
 is deployed in https, the client can not connect to server (axis2 1.0 
 where web services is deployed).
 
 I am using self signed certificate in client side. I added the 
 certificate of the client in https server's trusted certificate key 
 store. But could not connect to server.
 
 It throws nullPointerException while trying to connect web service.
 
 I tried using CA certified key in the client side. In this case, it works.
 
 I need to connect to axis2 1.0 server deployed over https with client 
 that has self signed certificate.
 
 Does any one knows how to configure the client for this?
 
 Thanks in advance.
 Subash 
  
  
 PRIVACY NOTICE
 
 This email and any attachments may be confidential and/or privileged. Use
 of the information contained in this email by anyone other than the
 intended recipient is strictly prohibited. If you have received this email
 in error, please notify the sender by replying to this message and delete
 this email.
 
 -
 To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org
 For additional commands, e-mail: axis-user-h...@ws.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/-Axis2--How-to-deploy-Axis2-in-https-tp7897149p27334578.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: [Axis2] How to deploy Axis2 in https

2006-12-17 Thread Subash Devkota

Hello Ruchith,

Here is the part of the code i used for calling web service:
  
System.out.println(Endpoint Reference is:+ endPointRef);

   System.out.println(got ready to send the request);
   OMElement result=null;
   try{
   //Blocking invocation
   result = serviceClient.sendReceive(payload);
  
} catch (AxisFault axisFault) {

axisFault.printStackTrace();
   }
catch(Exception e){
System.out.println(Error trace is: );
e.printStackTrace();
}
  System.out.println(recieved response from server);


And my output will be :
   Endpoint Reference 
is:https://192.168.8.11/axis2/services/SecureServer

   got ready to send the request
   Error trace is: java.lang.NullPointerException

   at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:578)
   at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328)
   at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279)
   at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:457)
   at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:399)

   at WebServiceClient.callWebService(WebServiceClient.java:230)
.. and so on
   
If i use http, it will work...
Endpoint Reference 
is:http://192.168.8.11:7600/axis2/services/SecureServer

  got ready to send the request
  recieved response from server


Thank You.
Subash

Ruchith Fernando wrote:

On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:

Ruchith,

My https configuration does not require client to authenticate itself.

I have already included security in Axis2 with rampart. It works fine
when axis server is hosted in http.
But, when i hosted the same axis in https domain, the client can not
connect to axis server.
It throws nullPointerException.


Can you please post the complete stack trace?



I used the same key that is used for https as client key in axis client
(for testing purpose) and it worked properly without errors. But when I
use self signed certificate in axis client, it does not work.

The only configuration I changed for https was in axis2.xml file of web
service client.

transportSender name=
class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL
locked=falseHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter
/transportSender

Should I do any more configuration changes?

The next question is, if i intend to use axis in https, should i need to
configure rampart?


Nope. HTTPS config and ramaprt config is independent.

Thanks,
Ruchith


Thanks
Subash

Ruchith Fernando wrote:
 How have you configured HTTPS at the service? (the servlet container
 axis2 is deployed). Does it require the client to authenticate itself
 with its certificate?

 if so you MUST add the client cert into the container's trust store
 and then configure the client's following JSSE properties properly.
 javax.net.ssl.keyStore
 javax.net.ssl.keyStoreType
 javax.net.ssl.keyStoreType

 However even if the HTTPS config of the container does not require
 client auth you MUST have the CA cert of the CA that signed the
 container's cert in your jre/lib/security/cacerts store or if it uses
 a self signed cert then you can override trust store config with the
 JSSE properties. Please see here for more information [1]

 Thanks,
 Ruchith

 [1] http://java.sun.com/products/jsse/install.html

 On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:
 Hi all,

 I have problem deploying axis2 1.0 in https.

 I need to deploy my axis2 1.0 server over https application.

 I used following configuration in axis2.xml in client side.

 transportSender name=
 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
  parameter name=PROTOCOL
 locked=falseHTTP/1.1/parameter
  parameter 
name=Transfer-Encodingchunked/parameter

 /transportSender


 The web service works well when i use it in http.  But when axis2 
server

 is deployed in https, the client can not connect to server (axis2 1.0
 where web services is deployed).

 I am using self signed certificate in client side. I added the
 certificate of the client in https server's trusted certificate key
 store. But could not connect to server.

 It throws nullPointerException while trying to connect web service.

 I tried using CA certified key in the client side. In this case, it
 works.

 I need to connect to axis2 1.0 server deployed over https with client
 that has self signed certificate.

 Does any one knows how to configure the client for this?

 Thanks in advance.
 Subash


 

Re: [Axis2] How to deploy Axis2 in https

2006-12-16 Thread Subash Devkota

Ruchith,

My https configuration does not require client to authenticate itself.

I have already included security in Axis2 with rampart. It works fine 
when axis server is hosted in http.
But, when i hosted the same axis in https domain, the client can not  
connect to axis server.

It throws nullPointerException.

I used the same key that is used for https as client key in axis client 
(for testing purpose) and it worked properly without errors. But when I 
use self signed certificate in axis client, it does not work.


The only configuration I changed for https was in axis2.xml file of web 
service client.
  
   transportSender name= 
class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
parameter name=PROTOCOL 
locked=falseHTTP/1.1/parameter

parameter name=Transfer-Encodingchunked/parameter
   /transportSender

Should I do any more configuration changes?

The next question is, if i intend to use axis in https, should i need to 
configure rampart?


Thanks
Subash

Ruchith Fernando wrote:

How have you configured HTTPS at the service? (the servlet container
axis2 is deployed). Does it require the client to authenticate itself
with its certificate?

if so you MUST add the client cert into the container's trust store
and then configure the client's following JSSE properties properly.
javax.net.ssl.keyStore
javax.net.ssl.keyStoreType
javax.net.ssl.keyStoreType

However even if the HTTPS config of the container does not require
client auth you MUST have the CA cert of the CA that signed the
container's cert in your jre/lib/security/cacerts store or if it uses
a self signed cert then you can override trust store config with the
JSSE properties. Please see here for more information [1]

Thanks,
Ruchith

[1] http://java.sun.com/products/jsse/install.html

On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:

Hi all,

I have problem deploying axis2 1.0 in https.

I need to deploy my axis2 1.0 server over https application.

I used following configuration in axis2.xml in client side.

transportSender name= 
class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL 
locked=falseHTTP/1.1/parameter

 parameter name=Transfer-Encodingchunked/parameter
/transportSender


The web service works well when i use it in http.  But when axis2 server
is deployed in https, the client can not connect to server (axis2 1.0
where web services is deployed).

I am using self signed certificate in client side. I added the
certificate of the client in https server's trusted certificate key
store. But could not connect to server.

It throws nullPointerException while trying to connect web service.

I tried using CA certified key in the client side. In this case, it 
works.


I need to connect to axis2 1.0 server deployed over https with client
that has self signed certificate.

Does any one knows how to configure the client for this?

Thanks in advance.
Subash


PRIVACY NOTICE

This email and any attachments may be confidential and/or privileged. 
Use of the information contained in this email by anyone other than 
the intended recipient is strictly prohibited. If you have received 
this email in error, please notify the sender by replying to this 
message and delete this email.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] How to deploy Axis2 in https

2006-12-16 Thread Ruchith Fernando

On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:

Ruchith,

My https configuration does not require client to authenticate itself.

I have already included security in Axis2 with rampart. It works fine
when axis server is hosted in http.
But, when i hosted the same axis in https domain, the client can not
connect to axis server.
It throws nullPointerException.


Can you please post the complete stack trace?



I used the same key that is used for https as client key in axis client
(for testing purpose) and it worked properly without errors. But when I
use self signed certificate in axis client, it does not work.

The only configuration I changed for https was in axis2.xml file of web
service client.

transportSender name=
class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL
locked=falseHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter
/transportSender

Should I do any more configuration changes?

The next question is, if i intend to use axis in https, should i need to
configure rampart?


Nope. HTTPS config and ramaprt config is independent.

Thanks,
Ruchith


Thanks
Subash

Ruchith Fernando wrote:
 How have you configured HTTPS at the service? (the servlet container
 axis2 is deployed). Does it require the client to authenticate itself
 with its certificate?

 if so you MUST add the client cert into the container's trust store
 and then configure the client's following JSSE properties properly.
 javax.net.ssl.keyStore
 javax.net.ssl.keyStoreType
 javax.net.ssl.keyStoreType

 However even if the HTTPS config of the container does not require
 client auth you MUST have the CA cert of the CA that signed the
 container's cert in your jre/lib/security/cacerts store or if it uses
 a self signed cert then you can override trust store config with the
 JSSE properties. Please see here for more information [1]

 Thanks,
 Ruchith

 [1] http://java.sun.com/products/jsse/install.html

 On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:
 Hi all,

 I have problem deploying axis2 1.0 in https.

 I need to deploy my axis2 1.0 server over https application.

 I used following configuration in axis2.xml in client side.

 transportSender name=
 class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
  parameter name=PROTOCOL
 locked=falseHTTP/1.1/parameter
  parameter name=Transfer-Encodingchunked/parameter
 /transportSender


 The web service works well when i use it in http.  But when axis2 server
 is deployed in https, the client can not connect to server (axis2 1.0
 where web services is deployed).

 I am using self signed certificate in client side. I added the
 certificate of the client in https server's trusted certificate key
 store. But could not connect to server.

 It throws nullPointerException while trying to connect web service.

 I tried using CA certified key in the client side. In this case, it
 works.

 I need to connect to axis2 1.0 server deployed over https with client
 that has self signed certificate.

 Does any one knows how to configure the client for this?

 Thanks in advance.
 Subash


 PRIVACY NOTICE

 This email and any attachments may be confidential and/or privileged.
 Use of the information contained in this email by anyone other than
 the intended recipient is strictly prohibited. If you have received
 this email in error, please notify the sender by replying to this
 message and delete this email.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]








--
www.ruchith.org
www.wso2.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] How to deploy Axis2 in https

2006-12-15 Thread Ruchith Fernando

How have you configured HTTPS at the service? (the servlet container
axis2 is deployed). Does it require the client to authenticate itself
with its certificate?

if so you MUST add the client cert into the container's trust store
and then configure the client's following JSSE properties properly.
javax.net.ssl.keyStore
javax.net.ssl.keyStoreType
javax.net.ssl.keyStoreType

However even if the HTTPS config of the container does not require
client auth you MUST have the CA cert of the CA that signed the
container's cert in your jre/lib/security/cacerts store or if it uses
a self signed cert then you can override trust store config with the
JSSE properties. Please see here for more information [1]

Thanks,
Ruchith

[1] http://java.sun.com/products/jsse/install.html

On 12/16/06, Subash Devkota [EMAIL PROTECTED] wrote:

Hi all,

I have problem deploying axis2 1.0 in https.

I need to deploy my axis2 1.0 server over https application.

I used following configuration in axis2.xml in client side.

transportSender name= 
class=org.apache.axis2.transport.http.CommonsHTTPTransportSender
 parameter name=PROTOCOL locked=falseHTTP/1.1/parameter
 parameter name=Transfer-Encodingchunked/parameter
/transportSender


The web service works well when i use it in http.  But when axis2 server
is deployed in https, the client can not connect to server (axis2 1.0
where web services is deployed).

I am using self signed certificate in client side. I added the
certificate of the client in https server's trusted certificate key
store. But could not connect to server.

It throws nullPointerException while trying to connect web service.

I tried using CA certified key in the client side. In this case, it works.

I need to connect to axis2 1.0 server deployed over https with client
that has self signed certificate.

Does any one knows how to configure the client for this?

Thanks in advance.
Subash


PRIVACY NOTICE

This email and any attachments may be confidential and/or privileged. Use of 
the information contained in this email by anyone other than the intended 
recipient is strictly prohibited. If you have received this email in error, 
please notify the sender by replying to this message and delete this email.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
www.ruchith.org
www.wso2.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]