cancel
Showing results for 
Search instead for 
Did you mean: 

IAIK on WebAs 6.4???

Former Member
0 Kudos

Hi All

We are working on SAP NetWeaver 6.40 and use IAIK in our J2EE application to implement the following functionalities:

1. Encryption/Decryption

2. Storing certificates from SAP into IAIK keystore In order to achieve the two requirements we bundle/package two IAIK jars inside our application namely:

a) iaik_cms.jar (Version 3.2)

b) and iaik_jce_full_signed.jar (version 3.13)

When we deploy the application on NetWeaver, the "Encryption/Decryption" is working correctly but while "Storing certificates from SAP into IAIK keystore" we get the following error:

"java.security.NoSuchProviderException: JCE cannot authenticate the provider"

We discussed this issue with IAIK and they suggested us to copy the iaik_jce_full_signed.jar file into the ext directory of our JRE.

With this we were able to resolve the above mentioned problem. But after this change we have started facing a new problem with Encryption and Decryption of data (java strings):

"javax.crypto.IllegalBlockSizeException: Input data length not a multiple of blocksize."

Our NetWeaver installation is using j2sdk1.4.2_08.

Please do reply as good answers shall be rewarded!

Regards

Bhupinder

brajput@filenet.com

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bhupinder,

Check these links...

1.How to encrypt/decrypt

2.Properly use RSA encryption

http://www.kickjava.com/2082.htm

Regards,

Maheswaran.B

Former Member
0 Kudos

Hi Maheswaran

Thanks for your help. We have already completed this part and our application is running successfuly on Weblogic,Websphere,SunOne and Jboss. This particular problem is observed only on SAP Netweaver WAS.

We include the IAIK jars in the lib directory of our WEB-Application(.war) and seems like Netweaver is not picking up the jars from there. Do i need to register them seperately? if yes please do specify the procedure.

Thanks

Bhupinder

Thanks

Bhupinder