emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stuart McLean <smclean0640@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-crypt fails to encrypt region
Date: Mon, 25 Oct 2010 13:19:06 -0700	[thread overview]
Message-ID: <87ocaikoud.fsf@horrorshow.hypnokush> (raw)

Hello,

I am just learning how to use GPG, org-crypt, and epa. I am using:

- org version 7.01h
- emacs version GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version
  2.20.1) of 2010-08-14 on barber, modified by Debian. 

In my .emacs I have the following variables set:

(require 'epa)

(require 'org-crypt)
(org-crypt-use-before-save-magic)
(setq org-tags-exclude-from-inheritance (quote ("crypt")))
; GPG key to use for encryption
(setq org-crypt-key "Stuart McLean")

I generated a keypair using KGPG, and tried to encrypt a region like the
following with `M-x org-encrypt-entry'.

*** secret data							      :crypt:
    my secret data

I also tried:

*** crypt setup							      :crypt:
    :PROPERTIES:
    :CRYPTKEY: Stuart McLean
    :END:
    my secret data

I get the following in the echo area:

epg-encrypt-string: Encrypt failed: ((exit) (invalid-recipient (reason . 0) (requested-recipient . "7488B7E9D0613F5E")))

I get the same error with `epa-encrypt-region'.

Again, I am new to this, is there possibly an error with my GPG setup?


Thank you,

Stuart

                 reply	other threads:[~2010-10-25 20:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ocaikoud.fsf@horrorshow.hypnokush \
    --to=smclean0640@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).