EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Open PGP Pipeline; Encrypt and Sign

Posted: 04/08/2009 16:14:26
by CARLOS RAMIREZ (Standard support level)
Joined: 02/19/2009
Posts: 7

How to use OpenPGP Pipeline component to Encrypt and Sign a text?

We are trying to use ‘SecureBlackBox for Business Servers’ with ‘BizTalk Server 2006 R2’.

We already have a manual process of encrypting and signing using WS_FTP tool. We are planning to move this process to BizTalk Server.
We have following information available with us.
1. The public key used for encryption from our client.
2. Public and private keys for signing.
3. Key phrase.

Can you please explain the steps involved to achieve this?
What properties of pipeline component are to be set with what values?
Posted: 04/09/2009 08:29:31
by Ken Ivanov (Team)

Thank you for contacting us.

The following properties should be set:
1. PubKeyring: to the path to the file containing a key to be used for encryption.
2. SecKeyring: to the path of the private keys to be used for signing.
3. Operation: to EncryptAndSign (its integer equivalent is 2).
4. InputIsText: to true.
5. KeyPassphrase: to the passphrase of your private key.
6. EncryptionType: to PublicKey (0, it is the default value).

Some other properties may also require tuning up (such as UseNewFeatures/UseOldPackets) to make the resulting files understood correctly by the processing software.
Posted: 03/17/2010 18:51:07
by Sean Tsai (Standard support level)
Joined: 03/16/2010
Posts: 10

Following this question, if you have multiple public keys in a public keyring file. How do you specify which public key to use? In PGP product, you can specify recipient.

Posted: 03/18/2010 00:12:11
by Ken Ivanov (Team)

Please use the KeyFilter property. You can use the following types of filters:

userid=Floyd Pinkerton
Posted: 03/18/2010 07:10:32
by Sean Tsai (Standard support level)
Joined: 03/16/2010
Posts: 10

I tried keyid=0xmykey (8 hex digits) but didn't work. I got this error:

Failed to process the message: No suitable OpenPGP public key for encryption found

Also I tried the command line tool openpgpkey tool with -id option and it always prompt error:

The value of "ID" parameter is invalid

if I only provided 8 hex digits. What did I do wrong?
Posted: 03/18/2010 09:07:01
by Ken Ivanov (Team)

Please re-check the correctness of the KeyID. OpenPGP pipeline understands both short (8 hex digits) and long (16 hex digits) formats. For instance, the following values will work with the sample keys included to the distribution:


BTW, does filtering work for you if the key is specified by the user id?

OpenPGPKeyTool only understands long KeyIDs without the "0x" prefix. That's why you experience the mentioned issue.
Posted: 03/18/2010 10:47:21
by Sean Tsai (Standard support level)
Joined: 03/16/2010
Posts: 10

I'm trying your suggestion but all of a sudden I got the following error:

Failed to process the message: Your evaluation period has expired. Please purchase a license or prolong your evaluation period at http://www.eldos.com. (x: ; y: ; r1: 1153; r2: 1153)

I just started the evaluation process this Monday.
Posted: 03/18/2010 11:03:44
by Ken Ivanov (Team)

Hmm, can you please specify the versions of BizTalk server and operating system you are running? Seems to be some permissions issue.

I am also sending you another license key in the private message.
Posted: 03/18/2010 11:31:21
by Sean Tsai (Standard support level)
Joined: 03/16/2010
Posts: 10

ALl good now. License works and keyid works. Thanks.
Posted: 05/05/2011 11:04:09
by FTP Administrator (Standard support level)
Joined: 01/26/2011
Posts: 18

Is it possible to use more that one key filter when encrypting a file? I have two public keys that i need to use to encrypt the same file



Topic viewed 15974 times

Number of guests: 9, 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!