cancel
Showing results for 
Search instead for 
Did you mean: 

Whether standard SFTP Chunk and SAP PGP encryption work together?

zameerf
Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor
0 Kudos

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

former_member186851
Active Contributor
0 Kudos

One More way could split the records of the files at the sender level or mapping then encrypt so that the files will be small.

Else you to have follow Ryan's idea.

zameerf
Contributor
0 Kudos

Hi Ryan,

Thanks, we were also thinking about the OS command but believe the OS command will get executed after processing of each chunk(message) and most probably wouldn't help. Also, is there a possibility to execute SAP PGP module via command?

3rd party has confirmed that they will not be able to assemble the encrypted blocks.

Any other approach/thoughts?

Regards,

Zameer Farook

zameerf
Contributor
0 Kudos

Yes, that is the last option we think of to handle both large size and encryption together.

Regards,

Zameer Farook

Ryan-Crosby
Active Contributor
0 Kudos

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