Skip to Content

Whether standard SFTP Chunk and SAP PGP encryption work together?

Hi All,

We are having a requirement wherein PI 7.31 has to pick some files from SAP application server, do PGP encryption and send it to 3rd party.

This is a flat file to flat file scenario and we have not used any design(ESR) objects and built an interface using ICO.

However, few of the source files are larger in size (max. size can be around 1GB to 2GB).

Hence we have made use of the Large File Handling(Chunk Files) in sender SFTP adapter to read the source file in chunks(5MB),however when we do standard SAP PGP encryption over standard SFTP receiver channel, the chunks are individually getting encrypted into temporary chunk file until the last chunk.

There are multiple BEGIN PGP/END PGP statements inside the same target file.

Hence 3rd party is not able to decrypt the file due to multiple chunks of encrypted data inside one file.

Files less than 5MB which doesn't go into chunking works fine and 3rd party is able to decrypt successfully.

Will Chunk and Encryption work together?

Has anyone implemented such scenario successfully?

Appreciate your response.


Zameer Farook

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 28, 2016 at 01:31 PM

    Hi Zameer,

    I think you would have to look into doing the PGP encryption via OS command if you want to use chunking unless the third party has the capability of splitting the PGP blocks and decrypting those such that the payload can be reassembled.


    Ryan Crosby

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Zameer,

      I believe that if you use the before processing option for the OS command you would still be able to combine that with the chunking. If that does not work then I think you are stuck with running some form of two step integration so that you can perform the encryption first and then execute the transfer via the chunking mode.


      Ryan Crosby

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.