Skip to Content
0

PGP Encryption

Nov 07, 2016 at 05:18 AM

107

avatar image

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

10 |10000 characters needed characters left characters exceeded

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

0

I wrote the applyCompression = ZIP in receiver Module but still no use :-(

0
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Raghuraman S Nov 07, 2016 at 05:42 AM
0

Hello Gayathri,

How you generated the keys?

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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.

0

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

0

Raghu,

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

0

Yes Gayathri,

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

1
Manoj K Nov 07, 2016 at 06:56 AM
0

Can you please share the channel log screenshot ?

Show 8 Share
10 |10000 characters needed characters left characters exceeded

receiver-log.jpgsender-channel-log.jpg

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

0

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

0

message-id.jpg

Is this one manoj ?

message-id.jpg (282.1 kB)
0

Manoj ,

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

0

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.

log.png (21.8 kB)
0
log.jpg (72.3 kB)
log0.jpg (108.3 kB)
log1.jpg (66.6 kB)
log3.jpg (50.9 kB)
0

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

1
Show more comments
Gayathri V Nov 08, 2016 at 04:18 AM
0

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 ?

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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.

0

fileatreceiver.jpg

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

fileatreceiver.jpg (127.0 kB)
0

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/

jce.png (12.8 kB)
1
Raghuraman S Nov 08, 2016 at 05:32 AM
0
Share
10 |10000 characters needed characters left characters exceeded