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.

Regards,

Zameer Farook

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Regards,

    Ryan Crosby

    Add 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.

      Regards,

      Ryan Crosby