[SFTP] Connection with pem File and Password
Forge component by Paulo Ramos
Application Type
Traditional Web, Mobile, Reactive, Service

Hi All,

I have to connect to a SFTP using a PEM file as well as a password for the file. Is this support anyhow? I didn't see an option to do so. I'm getting the following error: "Private key is encrypted but passphrase is empty."

Thanks and regards,

Philipp

Hi Philipp,

The PrivateKey Actions take a privatekey in binary form but don't currently accept an associated passphrase.

I'll take a look at what's required to get this working.

Thanks,

David

Hi David,

Thanks, that would be awesome.. It was interesting that the error note already considers the required passphrase.

Best regards,

Philipp

Hey Philipp,

Yep, it looks like the passphrase is a parameter when creating the PrivateKey object, hence it being explicitly named in the exception. Hopefully it's not a big deal to do - it doesn't appear so at first glance.

Thanks,

David

Hi David,

I hope things are going well..

Just want to follow up on our previous messages - have you been able to have a look into the topic?

Thanks and regards,

Philipp

Hi Philip,

Apologies for the delay. I've just uploaded a new version of the SFTP component to the Forge with the added Passphrase parameter.

I don't have any SFTP sites that I can actually use to test this with, so if you could give it a try and let me know, that would be great.

Thanks,

David

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.