Showing posts with label SAP IS. Show all posts
Showing posts with label SAP IS. Show all posts

Friday, June 27, 2025

SAP IS: How to upload Known Host Keys to SAP BTP IS for SFTP Connectivity.

  In this blog I will explain how to create a known host file into SAP BTP IS and also how to update an already deployed known hosts file in SAP IS.


Assumption

You have already received the known host key file from the target server where you want to connect.


Create a Known hosts file in SAP IS.


  • Login to SAP BTP IS

  • Select Monitor --> Integration and APIs --> Manage Security --> Security Material



  • Click on Upload --> Known Hosts (SSH)



  • Choose the file and click on 'Deploy'.


  • The host keys should be uploaded  now. You should be able to see the below. You can clock on the download icon to download the file and verify.



You can no do your SFTP connectivity testing now.




Update a Known hosts file.


If you want to update the known hosts key file or add new entries to the file, you need to download the file first and update/add the entry in the downloaded file. 

Then follow the above steps to upload again.


Note:- If don't download the file and make changes in that file, you will basically override what was there and it could cause issues


Reference:

Known Hosts File

Deploying an SSH Known Hosts Artifact

Maintaining the Known Hosts File for SFTP Connectivity



Feel free to point out if anything is missing/wrong in this blog.

Thursday, May 29, 2025

SAP IS: How to convert the SSH key to p12 format for loading into SAP IS Key Store

SAP IS: How to convert the SSH key to p12 format for loading into SAP IS Key Store.

You can refer the below link to see how to generate the SSH Key pair

SAP IS: How to create an SSH Key pair for SFTP Connection


Download portable cygwin from Portable Cygwin

Once downloaded, you need to uncomment the entries in the cygwin-portable-config.bat and add 'openssl' also to the CYGWN_PACKAGES variable.



Now execute the file cygwin-portable-setup.cmd. This will create a set of folders under the main folder.

You can also install cygwin by following  Setting Up Cygwin/X


Now, you need to follow the below steps to convert the SSH key to p12 format.

1. Copy the generated SSH key into a folder where cygwin can access. In my case I created a folder under Data/admin/aj and copied my ssh key into that folder.



2. Run the file cygwin-portable-terminal.cmd  as administrator

3. Use OpenSSL package commands to create X.509 certificate

openssl req -new -x509 -days 7300 -key ./aj/ajohny_ssh_new.pem -out ./aj/ajohny_ssh_new.x509


Enter the Pass Phrase for the SSH Key (If you have entered pass phrase when generating the key)

Enter the below details when asked: (You can leave it blank as well if you want)

1. Country Name

2. State

3. Locality Name

4. Organization Name

5. Organizational Unit Name

6. Common Name

7. Email Address


Now you can see the certificate is created.


3. Now create the p12 file from the certificate created above

openssl pkcs12 -export -in ./aj/ajohny_ssh.x509 -inkey ./aj/ajohny_ssh.pem -out ./aj/ajohny_ssh.p12


Enter the Pass Phrase for the SSH Key (If you have entered pass phrase when generating the key)


Enter the export password for the p12 file.





Reference : The KEY to unlock the "KEY GENERATION" mystery - SFTP/SSH




Feel free to point out if anything is missing/wrong in this blog.

Wednesday, May 28, 2025

SAP IS: How to create an SSH Key pair for SFTP Connection

I am adding the steps to generate the SSK Key Pair in my SAP blog, because I had to use this in my SAP Implementation. 

We had to generate the SSH Keys to load into SAP IS for doing SFTP connection.  We had to convert these ssh keys into .p12 format, but the steps for the conversion will be in my next blog. I will update this blog with the link to that once I have it ready.

Update : SAP IS: How to convert the SSH key to p12 format for loading into SAP IS Key Store

1. Download PuTTYgen and install it in your machine.

   You can download it from Download PuTTY: latest release (0.83) or PuTTYgen


2. Open PuTTYgen and choose the Type of Key you want to generate under the Parameters Section. Also specify the Number of bits.

   


   

3. Click on Generate button and move the mouse randomly in the blank area, until the key is generated.

   


   

4. When done, specify the passphrase if you want a passphrase to the key. Adding a passphrase adds an extra security to your private key. 

    


   

5. You can save the private key using the 'Save Private key' button or using the menu Conversions--> Export OpenSSH Key.



6. You can save the public key using the 'Save Public key' button or copy from the "Public key for pasting into OpenSSH authorized_keys file" box in PuTTYgen.






Feel free to point out if anything is missing/wrong in this blog.

SAP IS : Boost Your Productivity with SAP CPI Helper Extension for SAP BTP Integration Suite

  If you're working with SAP BTP Integration Suite (IS) —especially with Cloud Integration (formerly CPI) —you probably know how powerfu...