PGP Decryption for PGP+ binary file content
search cancel

PGP Decryption for PGP+ binary file content

book

Article ID: 237572

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

issue while decrypting the file content coming from SFTP server.

If file content is "Alight ASCII+ PGP" encrypted , Layer7 is able to decrypt this and can see the decrypted content.

The Issue is the  backend has standard format they can't have ASCII+PGP file format but need  PGP+Binary format I am not able to base64 encode ,decode and decrypt because as per tech document base64 encode/decode doesn't work for binary content

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/11-1/policy-assertions/assertion-palette/message-validation-transformation-assertions/encode-decode-data-assertion.html

Does GW have some limitation where in it supports only ASCII not binary+pgp format ?

 

 

Environment

Release : 10.x 11.x 

Component : API GATEWAY

Resolution

The gateway also supports decrypting of PGP+Binary format  , the main thing is that you need to base64encode the output from the get from sftp . and then use the ${textb64.mainpart} as input to the decryption