axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhinav Mishra (JIRA)" <>
Subject [jira] Commented: (RAMPART-323) Illegal key size exception
Date Sun, 27 Feb 2011 10:44:58 GMT


Abhinav Mishra commented on RAMPART-323:

Hi Thilina,
Thank You!!!
I  ran that java program and it printed 

Unlimited strength crypto IS available.

Also, I have changed version of axis2 and rampart to version that you told me to use, still
I am getting the same error.

Exception in thread "main" org.apache.axis2.AxisFault: Error in encryption
        at org.apache.rampart.handler.RampartSender.invoke(
        at org.apache.axis2.engine.Phase.invoke(
        at org.apache.axis2.engine.AxisEngine.invoke(
        at org.apache.axis2.engine.AxisEngine.send(
        at org.apache.axis2.description.OutInAxisOperationClient.send(
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
        at org.apache.axis2.client.OperationClient.execute(
Caused by: org.apache.rampart.RampartException: Error in encryption
        at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBinding
        at org.apache.rampart.handler.RampartSender.invoke(
        ... 8 more
Caused by: Cannot encrypt data; nested exception
is: Illegal key size or default
Original Exception was Illegal key size or default parameters
        at org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBinding
        ... 11 more
Caused by: Illegal key size or
default pa
Original Exception was Illegal key size or default parameters
        at Source)
        at Source)
        at Source)
        at Source)
        ... 14 more

So, could you please tell me what should I do now.


> Illegal key size exception

> ----------------------------------------------------------------------------------------------
>                 Key: RAMPART-323
>                 URL:
>             Project: Rampart
>          Issue Type: Question
>    Affects Versions: 1.4
>         Environment: Windows XP service Pack2, Axis2 1.5, jdk1.5_06, rampart 1.4
>            Reporter: Abhinav Mishra
>            Assignee: Thilina Buddhika
>            Priority: Blocker
>              Labels: security
>             Fix For: 1.4
>         Attachments:,,,,, client.jks, service.jks, services.xml
>   Original Estimate: 504h
>  Remaining Estimate: 504h
> I have already replaced those 2 jar files that are required to be replaced in $JAVA_HOME/jre/lib/security
directory. Also, i have placed bcprovjdk.jar in  $JAVA_HOME/jre/lib/ext . I have also modified
$JAVA_HOME/jre/lib/security/ file to contain security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider.
still I am getting the same exception every time i run my client code.
> I have  got stuck here.
> Please provide some solution!!!!!
> Thanks in advance......

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message