It says "gpg: gpg-agent is not available in this session". What does that mean?
On Wednesday, 29 January 2014 11:05:18 UTC-5, szimszon wrote: > > Can you sign some txt from command line with web2py's user? > > gpg --sign --default-key my_h...@gmail.com <javascript:> x.txt > > > ? > > 2014. január 29., szerda 16:12:43 UTC+1 időpontban horridohobbyist a > következőt írta: >> >> It says "expires: never" and "trust: ultimate" and "validity: ultimate", >> and "usage: SC" for "pub" and "usage: E" for "sub". Looks good, I think. >> >> Just for the purpose of testing, I want to do one thing at a time. So >> first, I want to send an encrypted email. I don't care whether the receiver >> can decrypt the message. Surely web2py can send an encrypted email to >> anybody without a public key... >> >> Alternatively, can I send an encrypted email to myself, since my public >> key should already be in my keyring? Ultimately, that's what I want to do, >> anyway. >> >> >> On Wednesday, 29 January 2014 09:29:31 UTC-5, szimszon wrote: >>> >>> It could be that the key is not trusted. What is the status of the key >>> if you look at: >>> >>> gpg --edit-key my_h...@gmail.com >>> >>> 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 " >>>> my_h...@gmail.com". >>>> >>>> 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 'my_h...@gmail.com'? >>>>> >>>>> (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 [my_h...@gmail.com]". 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 [my_h...@gmail.com]". >>>>>>> >>>>>>> I did create the key files with gpg for sender "my_h...@gmail.com". >>>>>>> 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 'my_h...@gmail.com'). I have the >>>>>>>>>>> following code: >>>>>>>>>>> >>>>>>>>>>> mail = Mail('smtp.gmail.com:587','my_han...@gmail.com >>>>>>>>>>> ','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('some_...@gmail.com','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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.