How to test gpgsm

Werner Koch wk@gnupg.org
Fri Dec 14 18:34:02 2001


On Fri, 14 Dec 2001 17:05:15 +0100, Bernhard Reiter said:

> I get something different:

Yours is better.  I did the test on another box and updated it while
writing this mail.

> /powerhome/bernhard/.gnupg-test/pubcerts.kbx
> --------------------------------------------
> crt:?:1024:82::1007372198:1038908198::00::CN=test cert 1,OU=Aegypten
> Project,O=g10 Code GmbH,L=Düsseldorf,C=DE:escESC:

crt - certificate , similar to "pub" for openPGP,
1024 is the (faked) keylength.
82 is the algorithm number, well it should be.
The 2 large numbers are the notBefore and notAfter values (seconds
since epoch)
00 is the serial number of the certificare, given in hex.
The sting is the issuer's DN. 
escESC are the (faked) capabilities of the key 

> fpr:::::::::3CF405464F66ED4A7DF45BBDD1E4282E33BDB76E:

fingerprint

> uid:?::::::::CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE::

The subject's DN is always the first uid.

> echo foobee | ./gpgsm -ea
> Warning: using insecure memory!
> gpgsm: DBG: failed to find default certificate: rc=-1
> gpgsm: no default recipient found

Tsss. Are you sure that you have the lates CVS version?

> do I need to have a default key defined in the options? 
> gpgsm: NOTE: no default option file `/powerhome/bernhard/.gnupg-test/gpgsm.conf'

No.

  Werner