EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Dynamic encrypting / routing

Posted: 09/11/2009 07:11:30
by Kel Koenig II (Standard support level)
Joined: 07/25/2008
Posts: 41

We were recently posed with this situation and I'm unsure if BizCrypto or even BizTalk can handle it. Lets say we have 100 files that are all prefixed with a specific companies ID. Each file needs to be encrypted with that companies public PGP key and then sent to that companies specific SFTP site using a unique userID / password. Is there any way to do this using a OpenPGP Writer pipeline component and is there a component for SFTP that would allow this dynamic routing?

Posted: 09/11/2009 07:38:01
by Ken Ivanov (Team)

I see the following resolution of this task:

1) the files are read with the out-of-the-box FILE adapter and passed to the orchestration,

2) the Receive element of the orchestration is immediately followed by the Execute statement containing the code that extracts the company ID prefix from the file name,

3) the Execute statement is followed by the Message Assignment shape that sets the properties (namely, the keyring ones) of OpenPGP pipeline. BizCrypto does not support specifying particular keys in the "big" keyring at the moment (actually, we plan to add this functionality later), so you would either have to store a set of keyring files, each one containing keys corresponding to a particular company, or get the appropriate keys from the database. The article provides the details on setting pipeline properties from within the orchestration.

4) the same Message Assignment statement is used to set up address, username and password for a particular host in the following way:
MyOutMessage(BizCrypto.BizTalk.Adapters.SFTP.Address) = "companyserver.com";
MyOutMessage(BizCrypto.BizTalk.Adapters.SFTP.Username) = "username";
MyOutMessage(BizCrypto.BizTalk.Adapters.SFTP.Password) = "password";

Alternatively, step 4 can be replaced with the dynamic configuration of the send port:
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address) = "bc-sftp://username;password=password@companyserver:22/dir"



Topic viewed 5816 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!