Hi aman,

There is no way to do the encryption with file connector.

Thanks

On Fri, Oct 5, 2018 at 9:17 AM Aman Singh <[email protected]> wrote:

> Dear Shakila,
>
> Below code of mine copies a simple JSON file "Person.json", from my server
> location to my local windows machine:-
>
> <proxy name="FTPFileProxy" startOnLoad="true" transports="http https"
> xmlns="http://ws.apache.org/ns/synapse";>
>     <target>
>         <inSequence>
>             <fileconnector.copy>
>                 <source>sftp://{username}:{password}@
> {hostname}/home/myfolder/input/Person.json</source>
>                 <destination>file:///D:/destination</destination>
>                 <setTimeout>100000</setTimeout>
>                 <setPassiveMode>true</setPassiveMode>
>                 <setSoTimeout>100000</setSoTimeout>
>             </fileconnector.copy>
>         </inSequence>
>         <outSequence/>
>         <faultSequence/>
>     </target>
> </proxy>
>
> I already have "public" and "private" keys with me.
>
> How can I do/use encryption and decryption to securely transfer my file
> between server and local machine?
>
> I searched on net but not able to find much information.
>
> Thank you,
> Aman
>
> On Fri, Oct 5, 2018 at 8:54 AM Shakila Sasikaran <[email protected]> wrote:
>
>> Hi Aman,
>>
>> Could you please share the sample to understand the use-case?
>>
>> Thanks
>>
>> On Thu, Oct 4, 2018 at 9:32 AM Aman Singh <[email protected]>
>> wrote:
>>
>>> Dear Shakila,
>>>
>>> I am using SFTP to transfer a file placed on my server to my local
>>> machine and vice-versa. I am successfully able to transfer it. I want to
>>> use encryption and decryption to transfer my files securely, like using
>>> some public/private key concept to do that.  Is this possible?
>>> How can I achieve this?
>>>
>>> Your help would be much appreciated.
>>>
>>> Thank you,
>>> Aman.
>>>
>>
>>
>> --
>> Shakila Sasikaran
>> Software Engineer
>> Mobile :+94 (0) 77 526 6848
>> [email protected]
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>>
>

-- 
Shakila Sasikaran
Software Engineer
Mobile :+94 (0) 77 526 6848
[email protected]
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to