EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Incomlete header when integrating with Commerce Hub

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#19822
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>";

pgpUser->AddSignature(pgpSig);
myKeyPair->BindUs er(pgpUser);
myKeyPair->Passphrase = edtPasskey->Text;
myKeyPair->ArmorHeaders->Add("BSoftPGPOutput");
myKeyPair->Generate(edtPasskey->Text, 2048, SB_PGP_ALGORITHM_PK_DSA);

ElPGPKeyring1->AddSecretKey(myKeyPair);

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

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

TStringList * passKeyFile = new TStringList;
passKeyFile->Add(edtPasskey->Text);
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
#19823
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:

Code
      TElPGPSecretKey* SecKey = new TElPGPSecretKey;
      SecKey->Generate("password",
        1024, SB_PGP_ALGORITHM_PK_DSA,
        1024, SB_PGP_ALGORITHM_PK_ELGAMAL_ENCRYPT, "John Doe <john@doe.com>", 0);
#19828
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
#19837
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!

Ken

Reply

Statistics

Topic viewed 1020 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!