YEs. i have the bouncy castle jar in the classpath(to be very surei have included itin jre/lib/ext). I have updated the java.security and also have the appropriate unrestricted policy jars in the jre/lib/security directory. Is there anythuing else that i am missing? BTw, i am using axis 1.4 and wss4j 1.5. Can i not use another encryption transport algorithmjust to get overthis issue?

From: "Ruchith Fernando" <[EMAIL PROTECTED]>
To: "vivek srinivasan" <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: unsupported key transport encryption algorithm:
Date: Sun, 10 Sep 2006 20:11:55 +0530

Do you have the bcprov.jar (bcprov-jdk13-132.jar or
bcprov-jdk15-132.jar) in the classpath.

If you are using JKD 1.5 then follow the instructions given here : (In
General item #3)
http://ws.apache.org/axis2/faq.html

Thanks,
Ruchith

On 9/10/06, vivek srinivasan <[EMAIL PROTECTED]> wrote:
I am trying to do an encryption(no combination with sigantures but just
encryotion). Here are the properties set on the client side.
user2Binding._setProperty(WSHandlerConstants.ACTION, "ENCRYPT");
user2Binding._setProperty(WSHandlerConstants.USER, "KEYHOLDER");
user2Binding._setProperty(WSHandlerConstants.PW_CALLBACK_CLASS,
"test.com.ams.coretest.serverdependent.webservices.WSS4JClientPWCallback");
user2Binding._setProperty(WSHandlerConstants.ENC_PROP_FILE,
"crypto.properties");

On the cilent side, iget the following error

    [junit] End override of Transform.register.
    [junit] org.apache.ws.security.WSSecurityException: WSHandler:
Encryption: error during message
processingorg.apache.ws.security.WSSecurityException: An unsupported
signature or encryption algorit
hm was used (unsupported key transport encryption algorithm: No such
algorithm: http://www.w3.org/20
01/04/xmlenc#rsa-1_5)
    [junit]     at
org.apache.ws.security.action.EncryptionAction.execute(EncryptionAction.java:64)
    [junit]     at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:191)
    [junit]     at
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
    [junit]     at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

What am i missing here? Is there a problem with the keys that i generated? I
use bouncy castle to generated the keys as follows
C:\>keytool -genkey -v -alias KEYHOLDER -sigalg DSA -keypass
KEYHOLDERPASSWORD -keystore c:\.signing_device -storepass PASSWORD
-storetype BKS -provider BC.
i eventried chaging the encryption transport algorithm  to
user2Binding._setProperty(WSHandlerConstants.ENC_KEY_TRANSPORT,
"http://www.w3.org/2001/04/xmlenc#tripledes-cbc";)

_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG


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




--
www.ruchith.org

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


_________________________________________________________________
Windows Live Spaces is here! ItÂ’s easy to create your own personal Web site. http://spaces.live.com/signup.aspx


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

Reply via email to