Sample usage
Jonathan Hayward -- http://JonathansCorner.com
jshayward@pobox.com
Tue Sep 4 22:33:01 2001
This is a multi-part message in MIME format.
--------------F479B3F01FE187D811C04341
Content-Type: multipart/alternative;
boundary="------------950BD195A39471153F9127A8"
--------------950BD195A39471153F9127A8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I realized today another possibility why my demo might be panicking
about a non-available algorithm, namely that I've failed to export the
demo key properly. Subsequent tests, if not proving my suspicion, at
least corroborate it: if I try to generate keys (DSA + El-Gamal) and
save to demo files, then rename ~/.gnupg and regenerate it, I can't sign
from the command line based on the files I'm trying to export.
Given that my demo will be more awkward if I make the person generate a
key before testing the GUI, I want to ship a sample public and private
key with it. How do I save the keys? What I tried was:
gpg --output sample_public_key --export tclgpg-demo@eolas.com
gpg --output sample_private_key --export-secret-keys
tclgpg-demo@eolas.com
I've attached the keyfiles; when I try on the command line to sign a
sample document (gpg --armor --output sample_document.sig --keyring
./sample_private_key --local-user tclgpg-demo@eolas.com --sign
sample_document), it says that the secret key is not available. Could
you explain to me what I'm doing wrong?
--
Jonathan Hayward
jshayward@pobox.com
http://JonathansCorner.com
(A four dimensional maze, stories, essays, artwork, and other things...)
--------------950BD195A39471153F9127A8
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I realized today another possibility why my demo might be panicking
about a non-available algorithm, namely that I've failed to export the
demo key properly. Subsequent tests, if not proving my suspicion,
at least corroborate it: if I try to generate keys (DSA + El-Gamal)
and save to demo files, then rename ~/.gnupg and regenerate it, I can't
sign from the command line based on the files I'm trying to export.
<p>Given that my demo will be more awkward if I make the person generate
a key before testing the GUI, I want to ship a sample public and private
key with it. How do I save the keys? What I tried was:
<p>gpg --output sample_public_key --export tclgpg-demo@eolas.com
<br>gpg --output sample_private_key --export-secret-keys tclgpg-demo@eolas.com
<p>I've attached the keyfiles; when I try on the command line to sign a
sample document (gpg --armor --output sample_document.sig --keyring ./sample_private_key
--local-user tclgpg-demo@eolas.com --sign sample_document), it says that
the secret key is not available. Could you explain to me what I'm
doing wrong?
<pre>--
Jonathan Hayward
jshayward@pobox.com
<A HREF="http://JonathansCorner.com">http://JonathansCorner.com</A>
(A four dimensional maze, stories, essays, artwork, and other things...)</pre>
</html>
--------------950BD195A39471153F9127A8--
--------------F479B3F01FE187D811C04341
Content-Type: application/octet-stream;
name="sample_public_key"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="sample_public_key"
mQGiBDuU7aYRBACEPQzByG+XslLJ3FyzhasNZiLxSsJ8HTsL+RLLD5/VSyVCq5Bt5sx367Lu
qXb5F0UzbsgMQLqFJyVFpIGC2reCxvL/lrakj1KtdEkpzLmTfmr83j9EUKYJkKVM9rOOLjlp
TB/rYE7yZ4h2YCR9pZDeOTfrcH+Z9eDH7DNxeK6qEwCg12oX4ofAbdZiVrZw2VKyxeoUJzED
/37Pm3VHjds70kbFkm/NgiiRKfjxzgeVbbmAtDywatYgy091MhNVrZSHyB5Jvf7ytqVA9TsF
Cqwvrjjy14kJ9FUuFLl/CGHHIuZ07LiVLAax4pyWEi91eTXpooAKyZPjeOWNIDpw00kHgl3e
mdinsF14Db5aCxlsNMr3kTYDmdNYA/4j4J9Z/Aagm+56CDdjAs3nrFrVfMk/HVqgsn0JfEp5
uxvgikFcPsmKfPigG1quDRkWiWwmFe78Acjc2i0Wkwr/V10wgHGnvjhAds9rfVaAY2J7utoV
vZv9VtVF5rgM6uPP7l8pdX3esLmTe3KJMD43I5Wdsj1P8FEQQjIJqr2gXLTDVGNsIGdwZyBl
eHRlbnNpb24gZGVtbyAoU2FtcGxlIGtleSB1c2VkIHRvIGRlbW9uc3RyYXRlIGdwZyBleHRl
bnNpb24gdG8gVGNsLiAgRE8gTk9UIFVTRSBUSElTIEtFWSBGT1IgUFJPRFVDVElPTiBXT1JL
LCBBTkQgRE8gTk9UIFRSVVNUIEFOWSBET0NVTUVOVCBTSUdORUQgV0lUSCBUSElTIEtFWS4p
IDx0Y2xncGctZGVtb0Blb2xhcy5jb20+iFcEExECABcFAjuU7aYFCwcKAwQDFQMCAxYCAQIX
gAAKCRClMYWv6NCuGWRzAKCOMwqQvxD53nlmiFmAMP/uAvTaJgCfWNPoO6QSxq2lKBdsEN6Q
zRDS1H+5AQ0EO5TtrxAEAMkDjbLKIFBAc2OBJH/4f+JcCZ7RI5cjgGlJswp4mXtdBSRIZ2dq
PmZBB0k8DkvwJFvMBgUeUIyuer5c4o6Hjh8LIHJAtJuf2s2rOrI7pafaWB9fInWhxM2M6z/s
68dlG4iW2LjXdlBcKRNSzinvOpzSMiRFtl+xTeU1cD38vvwXAAMFA/9DUIk/9ycMt9ibHVZm
noAB/hvpzEjzLYEOsR9FpcsZX4GwtsQlwW3u3PXYkBAbjHyekk120BUIvcyl2VlS58n5CnPC
j+BxGflqGYe4YmL+3JGaRVxJGjI/R0YgN1BJOAYcrQNB7hu4mXEZqysCgYDHFjzl+HScx1sz
rLAQrATCf4hGBBgRAgAGBQI7lO2vAAoJEKUxha/o0K4ZIT4Anj5ves1LUl8FbM2TNY5tPS9X
h6/bAJ0ZUuXM3LfvEeJ0am3rgx4MBN1zWg==
--------------F479B3F01FE187D811C04341
Content-Type: application/octet-stream;
name="sample_private_key"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="sample_private_key"
lQHPBDuU7aYRBACEPQzByG+XslLJ3FyzhasNZiLxSsJ8HTsL+RLLD5/VSyVCq5Bt5sx367Lu
qXb5F0UzbsgMQLqFJyVFpIGC2reCxvL/lrakj1KtdEkpzLmTfmr83j9EUKYJkKVM9rOOLjlp
TB/rYE7yZ4h2YCR9pZDeOTfrcH+Z9eDH7DNxeK6qEwCg12oX4ofAbdZiVrZw2VKyxeoUJzED
/37Pm3VHjds70kbFkm/NgiiRKfjxzgeVbbmAtDywatYgy091MhNVrZSHyB5Jvf7ytqVA9TsF
Cqwvrjjy14kJ9FUuFLl/CGHHIuZ07LiVLAax4pyWEi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