[
https://issues.apache.org/jira/browse/RAMPART-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999925#comment-12999925
]
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(RampartSender.java:70)
at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:254)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:419)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java
:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
org.apache.ws.axis2.Multiplication3Stub.mul(Multiplication3Stub.java:190)
at org.apache.ws.axis2.Client.main(Client.java:38)
Caused by: org.apache.rampart.RampartException: Error in encryption
at
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBinding
Builder.java:573)
at
org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:9
5)
at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
at
org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
... 8 more
Caused by: org.apache.ws.security.WSSecurityException: Cannot encrypt data;
nested exception is:
org.apache.xml.security.encryption.XMLEncryptionException: Illegal key
size or default param
eters
Original Exception was java.security.InvalidKeyException: Illegal key size or
default parameters
at
org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:608)
at
org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:461)
at
org.apache.ws.security.message.WSSecEncrypt.encryptForInternalRef(WSSecEncrypt.java:350)
at
org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBinding
Builder.java:559)
... 11 more
Caused by: org.apache.xml.security.encryption.XMLEncryptionException: Illegal
key size or default pa
rameters
Original Exception was java.security.InvalidKeyException: Illegal key size or
default parameters
at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
Source)
at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
Source)
at
org.apache.xml.security.encryption.XMLCipher.encryptElementContent(Unknown
Source)
at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
at
org.apache.ws.security.message.WSSecEncrypt.doEncryption(WSSecEncrypt.java:602)
... 14 more
So, could you please tell me what should I do now.
Thanks,
Abhinav
> org.apache.xml.security.encryption.XMLEncryptionException: Illegal
> key size exception
> ----------------------------------------------------------------------------------------------
>
> Key: RAMPART-323
> URL: https://issues.apache.org/jira/browse/RAMPART-323
> 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.java, Multiplication2.java,
> Multiplication2CallbackHandler.java, Multiplication2Stub.java,
> PWCBHandler.java, 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/java.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: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]