EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Incomlete header when integrating with Commerce Hub

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
Posted: 04/17/2012 15:56:33
by Ken Phillips (Standard support level)
Joined: 04/17/2012
Posts: 2

I'm a business software integration developer and I'm trying to develop an FTP integration with Commerce Hub EDI. I'm using C++ Builder in Embarcadero RAD Studio version 15.

Their specification requires as ASCII armored public key 1024 bit DSS/DAS.

When I send it to my support contact at Commerce Hub, he's complaining that his loading tool can't find an e-mail address in it. Unfortunately, he doesn't seem to be able to give me any guidance beyond this.

My code for building the key pair is

TElPGPSecretKey * myKeyPair = new TElPGPSecretKey;
TElPGPCustomUser * pgpUser = new TElPGPCustomUser;

TElPGPSignature * pgpSig = new TElPGPSignature;

pgpSig->SignerUserID = "FakeName <fakeAddress@fakeplace.com>";

myKeyPair->BindUs er(pgpUser);
myKeyPair->Passphrase = edtPasskey->Text;
myKeyPair->Generate(edtPasskey->Text, 2048, SB_PGP_ALGORITHM_PK_DSA);


myKeyPair->SaveToFile("J:\\PGP\\Sec" + edtFileRoot->Text + ".skr");

myKeyPair->PublicKey->SaveToFile("J:\\PGP\\Pub" + edtFileRoot->Text + ".asc", true);

TStringList * passKeyFile = new TStringList;
passKeyFile->SaveToFile("J:\\PGP\\Passkey" + edtFileRoot->Text + ".pkey");

Can anybody give me some guidance that will help me get him what he's looking for?

Thank you

Ken Phillips
Posted: 04/17/2012 16:05:52
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

Please have a look at the OpenPGPBlackbox\Keys sample installed with the main SecureBlackbox distribution. The sample illustrates the basic aspects of keypair generation. Namely, you can generate a DSS key with the following command:

      TElPGPSecretKey* SecKey = new TElPGPSecretKey;
        1024, SB_PGP_ALGORITHM_PK_DSA,
        1024, SB_PGP_ALGORITHM_PK_ELGAMAL_ENCRYPT, "John Doe <john@doe.com>", 0);
Posted: 04/17/2012 23:57:41
by Eugene Mayevski (EldoS Corp.)

Also please note that it's not possible for us to say what exactly some unknown third-party software wants without at least having a valid input for that software for comparison.

Sincerely yours
Eugene Mayevski
Posted: 04/18/2012 14:00:28
by Ken Phillips (Standard support level)
Joined: 04/17/2012
Posts: 2

Hi Eugene & Innokentiy

You guys got it exactly right. Thank you so much!




Topic viewed 1004 times

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


Back to top

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

Got it!