Question
Adqura
GB
Last activity: 25 Nov 2016 6:06 EST
Pega 7.2.1 How to create sFTP Server Data Instance using SSH RSA Keys
Hi,
I am looking for some guidance on how to create a sFTP Server Data instance using SSH RSA Keys?
We can currently manually sftp from our pega server into the target sftp server using rsa ssh keys. Our server's public ssh key is installed into the target sftp server.
I have a few questions around creating the sFTP Server Data instance:
1. Truststore - The help says - "Provide the SSH public key of your FTP server in a Truststore record to restrict connectivity to this known host." - does this mean its optional? And does it also mean that the Truststore/Keystore instance for this can be created using the rsa SSH (public) key?
2. Keystore - How do I go about creating a Keystore data instance using our server's SSH RSA Keys (id_rsa, id_rsa.pub)?
I have come across another post here - https://collaborate.pega.com/question/pega-72-sftp-feature-generating-keystore-ppk-file-received-pega-cloud - which descibes creating a Keystore record using a (putty based) .ppk file and using a custom activity. Can I use the same process to generate the Keystore using our server's private rsa key (id_rsa) instead of the .ppk file?
Thanks.
Regards,
Suraj
***Updated by moderator: Lochan to update Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Adqura
GB
Hi All,
Peter Tandara-Kuhns answered my questions so I am posting it here for everyone's benefit.
Hi All,
Peter Tandara-Kuhns answered my questions so I am posting it here for everyone's benefit.
Regards,
Suraj
Virtusa IT Consulting
AE
You can follow the steps provided in the post you are referring to. While uploading the file in Keystore rule give extension type as .pub
Adqura
GB
Can you please confirm if I need to upload the private key (id_rsa) or the public key (id_rsa.pub) into the Keystore rule ?
Virtusa IT Consulting
AE
can you please help me understand if you are using two way SSL? and whether id_rsa contains client side certificate, id_rsa.pub contains server side certificate or vice versa?
Pegasystems Inc.
US
@baigh Just to clarify what Suraj is asking for, sFTP refers to "Secure FTP", which is also known as "FTP over SSH". FTP over SSL/TLS is known as "ftps".
Pegasystems Inc.
US
@SurajAmin Use the client-side private key in the Keystore. It is used to identify the client to the server. Use the target server's public key in the Truststore to verify it's identity. This is what the sFTP client side code (Connect-FTP) is expecting at runtime.
Each of these appears to be optional to the rule.
Virtusa IT Consulting
AE
I understand the requirement is to connect to FTP server as FTPS (SSL enabled), however if there is no two way SSL then why there is a need to upload public key to trustore. If its just a matter of connecting to FTP server which is a one way connection so adding private key to keystore should suffice. Please correct me if I am wrong.
Accepted Solution
Adqura
GB
Hi All,
Peter Tandara-Kuhns answered my questions so I am posting it here for everyone's benefit.
Hi All,
Peter Tandara-Kuhns answered my questions so I am posting it here for everyone's benefit.
Regards,
Suraj