cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Encryption

Former Member
0 Kudos

Hi all,

I have to take a file from ECC in AL11 and i need to encrypt the file in PI and place back the encrypted file to ECC is my scenario..

I have configured the scenario without ESR part and i created the ID part alone with dummy interface and dummy Namespace, now i am able take the file and place it back to AL11 successfully . but while coming to encryption it is not working. i have written module parameters in Receiver file channel .Attached my receiver parameters file, I have the keys in standard location /usr/sap/sysId/*/sec , so just passing the file name partnerPublicKey with .asc type. the file is placing back to SAP without encrytion , Can anyone say what is that i am missing in encryption part ? shd i give this parameter in sender channel ? or shd i need to add any other parameters or missing something? i am new to PGP so pl. help .

receiver-channel.jpg

apu_das2
Active Contributor
0 Kudos

Hi Gayathri,

The configuration looks ok and it should work if the .asc file is valid. Can you please put applyCompression = ZIP as the first parameter name and try once.

Thanks,

Apu

Former Member
0 Kudos

I wrote the applyCompression = ZIP in receiver Module but still no use 😞

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member186851
Active Contributor
0 Kudos
Former Member
0 Kudos

Guys,

I use AES_256 algorithm in module, does that matter? basis told they used RSA encryption algorithm for the key generation.

and the key size was 2048. am i correct using AES_256 in that case ?

manoj_khavatkopp
Active Contributor
0 Kudos

No Algo is not the issue here .

How does the file content looks after this module ? can you show a part of file content in the receiver side.

Former Member
0 Kudos

fileatreceiver.jpg

this is how it looks at sender and as well as in receiver....

manoj_khavatkopp
Active Contributor

i am really out of options now finally , can you chekc the JCE's are up to date . Navigate to the URL :

http://<host>:<port>/BC//VerifyJCE and check for key size 2048 is it OK or Null if its null then you need to ask your basis team to update the JCE jars.

https://blogs.sap.com/2012/07/12/b2b-adapters-updating-to-jce-unlimited-strength-jurisdiction-policy...

manoj_khavatkopp
Active Contributor
0 Kudos

Can you please share the channel log screenshot ?

Former Member
0 Kudos

receiver-log.jpgsender-channel-log.jpg

i think you asked for this ? took this from CC monitoring , IS this one you asked for ?

manoj_khavatkopp
Active Contributor
0 Kudos

Can you please click on the message ID u see in receiver channel then please put that screenshot , especially the module execution part.

Former Member
0 Kudos

message-id.jpg

Is this one manoj ?

Former Member
0 Kudos

Manoj ,

Can you pl. let me know how do i check the module execution part in PI ? using channel log ?

manoj_khavatkopp
Active Contributor
0 Kudos

Navigate to : http://<host>:<port>/mdt then search using message ID.

The you will find the log as below in the detailed section of the message.

Former Member
manoj_khavatkopp
Active Contributor

Your log tells the encryption was successfull , cross chekc if you are chekcing the corrcet file.

Former Member

Manoj,

Actually i was checking the archive files which was in the folder,and the target files are in the same folder as the no. of files are more it missed to check there....so your comment helped me to check the file again. thanks a lot for the timely help....

former_member186851
Active Contributor
0 Kudos

Hello Gayathri,

How you generated the keys?

Former Member
0 Kudos

Basis Generated the Key Raghu , They gave us the Path /usr/sap/* where key located , so i gave the file name which is Public_key_sender.asc in partnerPublicKey.

former_member186851
Active Contributor
0 Kudos

Gayathri check in the channel logs if the module is applied.

Former Member
0 Kudos

Raghu,

Can you pl. let me know how do i check the module execution part in PI ? using channel log ?

former_member186851
Active Contributor

Yes Gayathri,

In the channel monitoring log you will get all the details like what parameter is applied.