Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSplit GPG support for EasyPG #2057
Comments
andrewdavidwong
added
enhancement
C: other
labels
Jun 9, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jun 9, 2016
Member
--yes and --output are already implemented as part of #1940. As for --command-fd - it requires some more evaluation to not allow any risky operation (like exporting private key in extreme case). In theory it is only about questions asked by GPG as part of requested command (determined by other command line options), but some confirmation would be nice.
|
|
marmarek
added this to the Release 3.0 updates milestone
Jun 9, 2016
marmarek
added
P: major
help wanted
labels
Jun 9, 2016
andrewdavidwong
changed the title from
Split GPG not working with EasyPG
to
Split GPG support for EasyPG
Jun 9, 2016
added a commit
that referenced
this issue
Jun 9, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jun 10, 2016
Member
Check latest version (2.0.20) - it should support all the options you've requested.
|
Check latest version (2.0.20) - it should support all the options you've requested. |
added a commit
that referenced
this issue
Jun 11, 2016
marmarek
modified the milestones:
Release 3.1 updates,
Release 3.0 updates
Jun 20, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Assuming it works now (see previous comment). If not, leave a comment. |
marmarek
closed this
Jun 20, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Jul 10, 2016
Member
On 2016-07-08 21:12, Niels Kobschätzki wrote:
when I try to use mu4e with easy pg to do anything with mails I just get a GPG-error.
For example with epa-mail-sign I get: GPG-error: "Sign failed", "Exit" after
Qubes asks me to access my gpg-keys and allowing to do so.
My vault with my gpg-keys is accessed and mutt/split-gpg works fine. Does anyone
have an idea what the problem could be?
|
On 2016-07-08 21:12, Niels Kobschätzki wrote:
|
andrewdavidwong
reopened this
Jul 10, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
Jul 10, 2016
It might be a problem with emacs 24. So now I updated to emacs 25 and after trying to sign the first time I get
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/home/user/.gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: no default secret key: No secret key
gpg: [stdin]: clearsign failed: No secret key
And after the first time
Error while signing with "/usr/bin/qubes-gpg-client":
gpg: no default secret key: No secret key
gpg: [stdin]: clearsign failed: No secret key
It can't find public keys either.
I also tried /usr/bin/qubes-gpg-client-wrapper.
nielsk
commented
Jul 10, 2016
•
|
It might be a problem with emacs 24. So now I updated to emacs 25 and after trying to sign the first time I get
And after the first time
It can't find public keys either. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 10, 2016
Member
What happens when you manually list keys? Like this:
qubes-gpg-client --list-secret-keys
And then, check if you really have those private keys in that backend
domain:
gpg2 --list-secret-keys (in backend domain)
If your keys are there, maybe it's only about specifying which one
should be used? For example in .gnupg/gpg.conf - default-key option (in
backend domain).
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
What happens when you manually list keys? Like this: And then, check if you really have those private keys in that backend If your keys are there, maybe it's only about specifying which one Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
Jul 10, 2016
manually listing: works
listing in backend domain: works
I set the default-key in my backend domain: same error
And when I use mutt in my mail-domain, split-gpg works fine
nielsk
commented
Jul 10, 2016
|
manually listing: works And when I use mutt in my mail-domain, split-gpg works fine |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 10, 2016
Member
Can you check what exact parameters are passed to qubes-gpg-client from
mu4e? Maybe it's trying to use some different key or so...
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Can you check what exact parameters are passed to qubes-gpg-client from Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
Jul 10, 2016
Tbh: I googled around and I have seriously no idea how to do that. I will write the emacs-ML, maybe someone can help me there
nielsk
commented
Jul 10, 2016
|
Tbh: I googled around and I have seriously no idea how to do that. I will write the emacs-ML, maybe someone can help me there |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 10, 2016
Member
On Sun, Jul 10, 2016 at 02:14:27AM -0700, Niels Kobschätzki wrote:
Tbh: I googled around and I have seriously no idea how to do that. I will write the emacs-ML, maybe someone can help me there
If you use qubes-gpg-client-wrapper, simply add some logging at the
beginning, like echo $@ >> /tmp/log.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Sun, Jul 10, 2016 at 02:14:27AM -0700, Niels Kobschätzki wrote:
If you use qubes-gpg-client-wrapper, simply add some logging at the Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
Jul 10, 2016
Thanks.
So emacs25 behaved weird. That showed with every operation only "--with-colons --list-config"
Now, I downgraded back to emacs24. This is able to list public and secret keys but signing etc won't work
A sign shows the following:
--with-colons --list-config
--no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --output /tmp/epg-output5325wDi --clearsign
An encrypt-action to my mail-address shows:
--with-colons --list-config
--with-colons --no-greeting --batch --with-fingerprint --with-fingerprint --fixed-list-mode --list-keys <my@mail.net>
--no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --armor --textmode --output /tmp/epg-output5325BRR --encrypt -r C186057EF1E416F2
And a decrypt
--with-colons --list-config
--with-colons --no-greeting --batch --with-fingerprint --with-fingerprint --fixed-list-mode --list-keys <my@mail.net>
--no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --armor --textmode --output /tmp/epg-output5325BRR --encrypt -r C186057EF1E416F2
The my@mail.net might be a problem since gpg expects my@mail.net without <>
nielsk
commented
Jul 10, 2016
•
|
Thanks. Now, I downgraded back to emacs24. This is able to list public and secret keys but signing etc won't work A sign shows the following:
An encrypt-action to my mail-address shows:
And a decrypt
The my@mail.net might be a problem since gpg expects my@mail.net without <> |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 10, 2016
Member
On Sun, Jul 10, 2016 at 03:40:29AM -0700, Niels Kobschätzki wrote:
Thanks.
So emacs25 behaved weird. That showed with every operation only "--with-colons --list-config"
And no actual operation just after that? Strange... I've just tried and
"qubes-gpg-client --with-colons --list-config" returns valid output.
Now, I downgraded back to emacs24. This is able to list public and secret keys but signing etc won't work
A sign shows the following:
--with-colons --list-config --no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --output /tmp/epg-output5325wDi --clearsign
--enable-progress-filter is not included in the allowed options.
It looks to be safe to simply ignore this option - take a look at
/usr/bin/qubes-gpg-client-wrapper - there is already loop for ignoring
some options - simply add another one.
The my@mail.net might be a problem since gpg expects my@mail.net without <>
Manual call to qubes-gpg-client seems to work either way.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
On Sun, Jul 10, 2016 at 03:40:29AM -0700, Niels Kobschätzki wrote:
And no actual operation just after that? Strange... I've just tried and
Manual call to qubes-gpg-client seems to work either way. Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
Jul 10, 2016
emacs25: Yeah, no further operation. It is really weird.
--enable-progress-filter
I added
--enable-progress-filter)
shift 2
;;
That will continue to bring the errors; shift or shift 3 (I tried both not really knowing how shift works) will freeze emacs while signing.
Btw. where can I find the allowed options? There is no man page and --help and -h are invalid options for qubes-gpg-client.
When I tried a mail-address enclosed by <> it didn't work for me. I tried it in bash and fish. It worked only in bash/fish when I surrounded my@mail.net with "
nielsk
commented
Jul 10, 2016
|
emacs25: Yeah, no further operation. It is really weird.
That will continue to bring the errors; shift or shift 3 (I tried both not really knowing how shift works) will freeze emacs while signing. When I tried a mail-address enclosed by <> it didn't work for me. I tried it in bash and fish. It worked only in bash/fish when I surrounded my@mail.net with " |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 10, 2016
Member
It should be just shift, just like for --yes.
That will continue to bring the errors; shift or shift 3 (I tried both not really knowing how shift works) will freeze emacs while signing.
So it looks like it isn't harmless to ignore this one...
When I tried a mail-address enclosed by <> it didn't work for me. I tried it in bash and fish. It worked only in bash/fish when I surrounded my@mail.net with "
Yes, otherwise bash will interpret "<" and ">".
Btw. where can I find the allowed options? There is no man page and --help and -h are invalid options for qubes-gpg-client.
Currently, only in source code: https://github.com/QubesOS/qubes-app-linux-split-gpg/blob/master/src/gpg-common.h#L164-L244
|
It should be just
So it looks like it isn't harmless to ignore this one...
Yes, otherwise bash will interpret "<" and ">".
Currently, only in source code: https://github.com/QubesOS/qubes-app-linux-split-gpg/blob/master/src/gpg-common.h#L164-L244 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
commented
Jul 10, 2016
|
Thanks. Anything else I can do? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Which Qubes version? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
nielsk
commented
Jul 10, 2016
|
3.2 RC1 |
marmarek
self-assigned this
Jul 11, 2016
marmarek
closed this
in
marmarek/qubes-app-linux-split-gpg@986f0c9
Jul 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 12, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.22-1+deb8u1 has been pushed to the r3.2 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.2-jessie-cur-test
label
Jul 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 12, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.22-1+deb9u1 has been pushed to the r3.2 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.2-stretch-cur-test
label
Jul 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 12, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.22-1+deb7u1 has been pushed to the r3.2 testing repository for the Debian wheezy template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.2-wheezy-cur-test
label
Jul 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 12, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.22-1.fc23 has been pushed to the r3.2 testing repository for the Fedora fc23 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.2-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.2-fc23-cur-test
label
Jul 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 12, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.22-1.fc24 has been pushed to the r3.2 testing repository for the Fedora fc24 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.2-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-wheezy-stable
label
Jul 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 25, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.23-1.fc23 has been pushed to the r3.2 stable repository for the Fedora fc23 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.2-fc23-stable
and removed
r3.2-fc23-cur-test
labels
Jul 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 25, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.23-1.fc24 has been pushed to the r3.2 stable repository for the Fedora fc24 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.2-fc24-stable
and removed
r3.2-fc24-cur-test
labels
Jul 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 25, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-dom0-2.0.23-1.fc23 has been pushed to the r3.2 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
marmarek
added
r3.2-dom0-stable
and removed
r3.2-dom0-cur-test
labels
Jul 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 25, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb8u1 has been pushed to the r3.2 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.2-jessie-stable
and removed
r3.2-jessie-cur-test
labels
Jul 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 27, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb8u1 has been pushed to the r3.1 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-jessie-cur-test
label
Jul 27, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 27, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb9u1 has been pushed to the r3.1 testing repository for the Debian stretch template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-stretch-cur-test
label
Jul 27, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jul 27, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb7u1 has been pushed to the r3.1 testing repository for the Debian wheezy template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-wheezy-cur-test
label
Jul 27, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.23-1.fc21 has been pushed to the r3.1 stable repository for the Fedora fc21 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc21-stable
and removed
r3.1-fc21-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.23-1.fc22 has been pushed to the r3.1 stable repository for the Fedora fc22 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc22-stable
and removed
r3.1-fc22-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-2.0.23-1.fc23 has been pushed to the r3.1 stable repository for the Fedora fc23 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc23-stable
and removed
r3.1-fc23-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split-dom0-2.0.23-1.fc20 has been pushed to the r3.1 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
marmarek
added
r3.1-dom0-stable
and removed
r3.1-dom0-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb8u1 has been pushed to the r3.1 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-jessie-stable
and removed
r3.1-jessie-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb9u1 has been pushed to the r3.1 stable repository for the Debian stretch template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-stretch-stable
and removed
r3.1-stretch-cur-test
labels
Aug 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Aug 5, 2016
Member
Automated announcement from builder-github
The package qubes-gpg-split_2.0.23-1+deb7u1 has been pushed to the r3.1 stable repository for the Debian wheezy template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
dschoepe commentedJun 9, 2016
Qubes OS version (e.g.,
R3.1):R3.1
Affected TemplateVMs (e.g.,
fedora-23, if applicable):fedora-23, probably all others as well.
Expected behavior:
When using Emacs-based mail clients supporting GPG through the EasyPG library, a split GPG setup in Qubes should work for signing and encrypting mails.
Actual behavior:
qubes-gpg-client reports unsupported options, such as "--yes", "--command-fd", and "--output".
Steps to reproduce the behavior:
General notes:
Since EPG is used by several Emacs-based mail clients, supporting the options it uses in qubes-split-gpg would be helpful in making Split GPG usable in more setups.
Related issues: