It could be that the key is not trusted. What is the status of the key if 
you look at:

gpg --edit-key [email protected]

you can mark it as trusted with the trust command at gpg's cli.

As I see in pgpme the problem is that there is no *suitable* key for 
signing rater than no key at all.

First you should disable encryption and see if you could set up signing... 

2014. január 29., szerda 14:54:51 UTC+1 időpontban horridohobbyist a 
következőt írta:
>
> Absolutely. The private (and public) keys are there for 
> "[email protected]<javascript:>
> ".
>
> Re: the receiver's public key, where do I put it and how do I incorporate 
> it into the code that sends the email? (Excuse me for not understanding how 
> PGP email works.) This second question is lower priority. Right now, my 
> *biggest* issue is just getting web2py to send the *encrypted* email *without 
> errors*.
>
> Thanks.
>
> On Wednesday, 29 January 2014 03:11:55 UTC-5, szimszon wrote:
>>
>> If you list your private keys is there a key for '[email protected]'?
>>
>> (gpg --list-secret-keys)
>>
>> And yes you need to have receiver's public key before you could send 
>> encrypted messages to him/her.
>>
>> 2014. január 28., kedd 22:27:44 UTC+1 időpontban horridohobbyist a 
>> következőt írta:
>>>
>>> GnuPG seems to be intimately tied to the user account on Linux. It 
>>> always, always expects .gnupg to be in /home/richard/. I can't seem to give 
>>> it an alternate location.
>>>
>>> Thinking that it might be a file ownership problem, I chown'd .gnupg and 
>>> everything in it to www-data:www-data, but this gave me the mail.error "GPG 
>>> error:Invocation of gpgme_op_sign:Unspecified source:General error".
>>>
>>> I chown'd everything back to richard:richard, and I got the mail.error 
>>> "No key for signing [[email protected]]". So I lose either way!
>>>
>>> It's probably not a file ownership problem. I am totally baffled by 
>>> this. Is PGP Email in web2py broken? Has anyone used it successfully 
>>> recently??
>>>
>>> Another question I have is:  Must I have the public key for the receiver 
>>> of my encrypted email before I can send? I'm grasping at straws, I know.
>>>
>>> Thanks.
>>>
>>>
>>> On Tuesday, 28 January 2014 13:53:02 UTC-5, horridohobbyist wrote:
>>>>
>>>> The error message is "No key for signing [[email protected]]".
>>>>
>>>> I did create the key files with gpg for sender "[email protected]". By 
>>>> default, they're created in my home directory, so I moved the .gnupg 
>>>> folder 
>>>> to /home/www-data/ and chown'd it and its contents to "www-data:www-data"
>>>> .
>>>>
>>>> I don't know if there are any other steps besides the above. I used the 
>>>> same sender email and passphrase in creating the keys. So everything 
>>>> should 
>>>> be okay.
>>>>
>>>> Thanks.
>>>>
>>>> On Tuesday, 28 January 2014 10:51:31 UTC-5, szimszon wrote:
>>>>>
>>>>> Sorry, mail.error :-o my bad.
>>>>>
>>>>> 2014. január 28., kedd 14:35:55 UTC+1 időpontban horridohobbyist a 
>>>>> következőt írta:
>>>>>>
>>>>>> AttributeError: 'Mail' object has no attribute 'err'
>>>>>>
>>>>>>
>>>>>> On Tuesday, 28 January 2014 08:25:43 UTC-5, szimszon wrote:
>>>>>>>
>>>>>>> Could you please print mail.err after the failed send?
>>>>>>>
>>>>>>> 2014. január 28., kedd 14:22:59 UTC+1 időpontban horridohobbyist a 
>>>>>>> következőt írta:
>>>>>>>>
>>>>>>>> As per the web2py book, I've installed python-pyme and created the 
>>>>>>>> key files (for sender '[email protected]'). I have the following 
>>>>>>>> code:
>>>>>>>>
>>>>>>>>         mail = Mail('smtp.gmail.com:587','[email protected]
>>>>>>>> ','my_handle:my_password')
>>>>>>>>         mail.settings.gpg_home = '/home/www-data/.gnupg/'
>>>>>>>>         mail.settings.cipher_type = 'gpg'
>>>>>>>>         mail.settings.sign = True
>>>>>>>>         mail.settings.sign_passphrase = 'my_passphrase'
>>>>>>>>         mail.settings.encrypt = True
>>>>>>>>         status = mail.send('[email protected]','some 
>>>>>>>> subject','some text')
>>>>>>>>
>>>>>>>> The mail.send() is failing. What's wrong?
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to