When I download any PGP encrypted file with Robotask's FTP commands the file get's corrupted. As try I to decrypt with my private key, PGP fails to prompt me for my passphrase, it just produces an output file that remains encrypted. If I use another FTP client to move the encrypted file PGP decryption works just fine.
FTP of PGP encrypted files
-
- Posts: 51
- Joined: Wed Oct 01, 2003 4:55 pm
- Contact:
FTP of PGP encrypted files
I think you have to use the "FTP Transfer Type->Binary" action before uploading and/or downloading.
FTP of PGP encrypted files
Thanks Alexey, I've allready done that.
Any other suggestions?
Any other suggestions?
FTP of PGP encrypted files
Using PGP has the additional advantage that it uses ZIP (actually called Deflate) compression on your file, which is apt to make it smaller. If you are already compressing the file, you can remove this step from your process.There are some gotchas you should be aware of:* If you make PGP generate binary (.pgp) output, make sure you FTP it in binary mode. A common mistake is to transfer it in text mode, which may corrupt the file.* If you want to be perfectly safe, you can have PGP generate ascii-armored output (.asc) and send this. However, the ascii-armoring adds 33% to the size of the file. This is often more than made up for by compression.
FTP of PGP encrypted files
Company A (Acme, Inc) wants to exchange data with Company C (Charlie Company). However, I represent Company B (BizTalk United) and we want to collect some of the data as well. A requirement has been made that all data will be transmitted using FTP and will also be encrypted. So, as the broker of the integration, I must resolve how to get data from point A to C and still be able to read the data myself. Once the PGP file is stored locally, I used some code (courtesy of MSDN) to load the file in to an XLANGMessage. With my PGP file now safely tucked away in a BizTalk message (of type XmlDocument of course), I can use the ExecuteReceivePipeline method to disassemble the encrypted message in to plain text.
Last edited by Oleg on Fri Nov 18, 2011 8:53 am, edited 1 time in total.