Skip to Content
author's profile photo Former Member
Former Member

OpenPGP encryption using bouncycastle in XI

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!


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 05, 2008 at 06:20 PM


    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.



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 03:12 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.