EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Exporting key from demo app results in pub key only

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#4449
Posted: 12/05/2007 13:35:01
by Barry Robbins (Standard support level)
Joined: 12/05/2007
Posts: 4

I am using the SBB demo applicaiton to export a key. I export the key and send to our other group. When the other group tries to load the key, they get a messages that states that the key only has a pub key, and not a sub key. The sub key is required for encryption.

Any ideas on how to resolve this? Thanks.

Barry Robbins
br@cogentconsulting.com
#4450
Posted: 12/05/2007 13:58:26
by Eugene Mayevski (EldoS Corp.)

Unfortunately we are developers and not clairvoyants. We can't guess what you are doing from your post.

Please provide the following information:

* edition and version (build number) of SecureBlackbox
* what exactly demo you are running (folder name)
* what key you are talking about. Type (RSA, X.509, PGP, SSH), format (depends on type) are important.



Sincerely yours
Eugene Mayevski
#4451
Posted: 12/05/2007 14:11:28
by Barry Robbins (Standard support level)
Joined: 12/05/2007
Posts: 4

SecureBlackBox version 5.1.112

The demo is from "C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\OpenPGPBlackbox\PGPKeys\bin\Debug\PGPKeysDemo.exe"

The key that I am trying to export is DSA (1024 bits).

Here is the error message that was received:

gpg: key D283E97C: no valid user IDs
gpg: this may be caused by a missing self-signature


Does this help?

Barry Robbins
#4452
Posted: 12/05/2007 14:27:16
by Eugene Mayevski (EldoS Corp.)

Yes, this makes things more clear.

PGP key is in fact a keypair. It has public and private (secret, in terms of PGP) key.

The sample application exports the public key only. You can check this in the code of the sample. Yes, we need to update the samples and I've added this to our ToDo list some time ago.

For now you can save the keyring and send the keys as one or two keyrings as required.


Sincerely yours
Eugene Mayevski
#4453
Posted: 12/05/2007 14:38:01
by Barry Robbins (Standard support level)
Joined: 12/05/2007
Posts: 4

Do you have any code examples of how I could solve this problem? Thanks again.

Barry Robbins
#4454
Posted: 12/05/2007 14:45:25
by Eugene Mayevski (EldoS Corp.)

Replace the ExportKey() method in the sample with

Code
      private void ExportKey()
      {
         TElPGPPublicKey key;
         if ((tvKeyring.SelectedNode != null) && (tvKeyring.SelectedNode.Tag is TElPGPPublicKey))
         {
            key = (TElPGPPublicKey)(tvKeyring.SelectedNode.Tag);
            saveFileDialog.Title = "Save public key to...";
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
               key.SaveToFile(saveFileDialog.FileName, true);
               Status("Public key saved");
            }
            if (key.SecretKey != null)
            {
               saveFileDialog.Title = "Save secret key to...";
               if (saveFileDialog.ShowDialog() == DialogResult.OK)
               {
                  key.SecretKey.SaveToFile(saveFileDialog.FileName, true);
                  Status("Private key saved");
               }
            }      
         }
      }


Sincerely yours
Eugene Mayevski
#4456
Posted: 12/06/2007 14:15:03
by Barry Robbins (Standard support level)
Joined: 12/05/2007
Posts: 4

Thanks for your help. I added the code listed above to the PGP demo windows application. When I export a key and send it to the other group, their software is able to find the "pub" portion of the key, but not the "sub" portion. Any ideas?

Barry Robbins
#4457
Posted: 12/06/2007 14:31:59
by Eugene Mayevski (EldoS Corp.)

I think you need to investigate the issue yourself, and not rely on reports of other people. SecureBlackbox requires certain level of competence in security. Without this it can't be used.


Sincerely yours
Eugene Mayevski
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

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