on 08-05-2008 5:51 PM
Hi All,
I am trying to encrypt IDOC flat files with PGP encryption before ftp them to a remote server. I am using bouncycastle libraries. I tested outside XI using their sample programs. Everything works fine. But when I deploy to XI, I receive the following error messages:
"The provider BC may not be signed by a trusted party"
I tried with two different ways in XI:
1. Using Java mapping - this is not a standard approach. First, I have an ABAP map to convert the IDOC from XML to flat file. Then use the second Java map to encrypt the content. With this approach, I need to import the bouncycastle libraries into "Imported Archives". I think XI actually unpack the jar files during the import process. So it did modify the signed jar files from boucycastle. This error message makes a lot of sense.
2. Using adapter module - this is the recommended approach. I developed a module EAR and bundled the libraries and deployed to XI using NWDS SDM. But I still got the same error. I am going to try again with visual administrator and see if that will make any difference.
I am running out of ideas. Does anyone have successful experience using bouncycastle within XI? Any help is greatly appreciated.
Thanks in advance!
Kenny
Hi folks!
Kenny, did you solve this?
How have your approch been?
(could you acutally write the steps in here so that folks like me can understand what to do!)
Is it even possible to paste the code you are using for this? I am right trying to do the same thing but I am not 100% sure on the Java coding.
I need to PGP encrypt a flatfile, and then FTP the file to another system. Seems pretty much to be a perfect match for what you have done!
Thanks in advance.
Mattias Kardell
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mattias,
No, I haven't got a chance to spend more time on this since this requirement has been postponed. But I think this should be a classloader problem. I will try to deploy the libraries in XI's JAVA_HOME\lib\ext folder and see if that makes any difference. Since I need help from Basis to do this, it is a little inconvenient.
I don't have the source code with me right now. But you should take a look at bouncycastle's sample code. It demonstrates the API usage pretty clearly. You should be able to slightly modify it to make it run inside an adapter module. If you still have trouble, let me know. I can post the code later.
Cheers,
Kenny
Hey
Even i agree with you that developing adapter module is the best way,but due to some constraints,we ended up using OS command to execute a script and do PgP encryption.
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.