Skip to Content

Public key generation

Hi All,

I am working on bank interfaces. This is pass through scenario.

there are 2 interfaces.

1. Pick the file from AL11 --> Encrypt it --> Place on bank's server

2. Pick the file from Bank's server --> Decrypt it --> Place on AL11

We are using PGP encryption/Decryption.

Bank has already provided their PGP public key. I have uploaded in PGP secure store and used in channel. I am able to encrypt the file.

Now i have to share public key to bank. Here i am facing issue.

Following steps i have performed:

Referred blog : Generating SSH Keys for SFTP Adapters - Type 2

1. generated .p12 file

2. using Open SSL generated .key file

Note : i was not able to generate .pub key

So used Putty generator.

3. Loaded above .key file and generated public key.

Now i was not sure if my generated file is correct or not.

So to cross verify i uploaded the same file in PGP secure store and tested interface.

It is failing with error : Exception caught by adapter framework: No public key with encryption capability found in SftpTestPublicKey

Please help me in generation public key. Let me know where i am getting wrong.



encryption.png (6.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Mar 09, 2018 at 12:28 PM


    You can use below url/ any other freeware tools available for generating the key pairs and the key which you have generated should have the PGP public/private key comment in the first and last line of the key same you can check by opening the keys.

    Generally our PGP module will accept any type of extension keys(such as .txt, .asc,.pub,etc..,) only if you want to place this in OS server path, but if you specifically loading into PGP secure store it accepts only few formats .asc, etc.,



    Add comment
    10|10000 characters needed characters exceeded

  • Mar 12, 2018 at 09:53 AM

    Hi Ankyy,

    Please correct me if my understanding is wrong. You need to provide your Public Key to the Bank , so that means Bank would be Encrypting the file and placing at SFTP. PI will pick the file , decrypt it using your Private Key and place it at AL11. But , in the screenshot provided m why are you Encrypting using your own Server Public Key? Sorry , bit confused. You need to use Decyption Module Instead.

    Also , generate the Keys using the link provided by Pavan above , and test the Decryption/Encryption using any Open Tool available over Internet instead through PI in the beginning. This will ensure the correctness of the keys. After that configure the keys in the channel.


    Vivek Jain

    Add comment
    10|10000 characters needed characters exceeded