on 08-11-2016 2:35 PM
Dear All.
Scenario is SFTP to SFTP.
I need to decrypt the file and the decrypted file need to process to Custom module in my sender SFTP Adapter.
sequence is
The problem is, the module which we developed it's working for all the scenario except PGP Decryption case.
Custom module level unable to find the encode method, so that it's throwing an error in module level.
My Doubt is.
client shared their public key with .asc extension ( i think .asc encoded with ASCII Armored), and we shared our public key with .pkr extension (not sure what is the encoding format) using the link https://www.igolder.com/PGP/generate-key/.
1. is because of this am i not able to Decrypt?
2. if yes what i need to do?
3. how can i get .asc file and my server is Linux? i tried it using this link Generating ASCII Armored PGP Key Pairs - Process Integration - SCN Wiki , but it's not a freeware and i'm not sure will it sure if my server is linux.
please note: i'm using 7.4 version single stack.
please help
Regards
Ramesh
Can any one through some light to identify this issue.
is there any way where i can decode my incoming payload.
Regards
Ramesh K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ramesh,
Please note: i spited this scenario as,
SFTP Sender (PGP Decryption ) -----> SFTP receiver (parked the same file)
SFTP Sender (same file called where i parked and custom module used) -----> SFTP receiver
but the above case is worked, ...
Really wondering if the modules are executing if mentioned as different scenarios but not executing in the same flow.
So can you try this Module sequence:
PGPDecryption.
MessageLoggerBean.
Custom module.
and run your interface then you will see the entry of decoded message in the Message monitoring check if this is valid payload.
Br,
Manoj
Hi ..
below error i'm getting.
it's pure custom module exception since thy are not able to read the file.
null
[EXCEPTION]
com.sap.aii.af.lib.mp.module.ModuleException: Invalid Corp Code in File :: NAME Valid Corp Code CORP
if i open the in notepad++ or in Edit++ i can see the file link below, each chat space contain, so that they can no read the name.
Hi Ramesh,
When you are making a two step scenario the issue vanishes because the output from first scenario is saved in disk. While saving the file the invalid characters are converted into space.
Then in second scenario when you use the module , it is able to read those characters since now they are converted into spaces which is valid for the module. To resolve this issue first find out the ascii value of the characters by printing them in module log. Then make appropriate changes in the custom module to handle such characters.
Regards
Anupam
Ramesh.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj.
Thanks for reply.
Yes, we tested, it's working.
converting text to xml format based on the version parameter maintained in Module tab.
Hello Ramesh,
Its based on which key ur using for encryption.
What is the error?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ragu .
Thanks for your reply.
Client encrypting with Encryption Algorithm AES_256 and Signing Algorithm SHA256.
i'm decrypting the file using ownPrivateKey, partnerPublicKey, pwdOwnPrivateKey in localejbs/PGPDecryption module .
can you please brief a little regarding a key in encryption level.
Error throwing in custom module level
null
[EXCEPTION]
com.sap.aii.af.lib.mp.module.ModuleException: Invalid Corp Code in File :: NAME Valid Corp Code CORP
please note: this module is working fine without pgp decryption.
Regards
Ramesh
Hi.
Decryption is happening... i removed my custom module and I've got a decrypted file. but this decryped processing to module is not working.
Please note: i spited this scenario as,
SFTP Sender (PGP Decryption ) -----> SFTP receiver (parked the same file)
SFTP Sender (same file called where i parked and custom module used) -----> SFTP receiver
but the above case is worked, ...
when i call the both sequentially PGP decrytion and my custom module it's throwing an error at module level.
Regards
Ramesh
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.