[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-22 Thread Phillip Susi
Would be nice if launchpad understood their bug tracker so it would
link.  Whenever they do fix it we may want to cherry pick it so this
doesn't bite other people upgrading to 18.04.


** Changed in: gnupg2 (Ubuntu)
   Status: New => Triaged

** Changed in: gnupg2 (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-22 Thread Dimitri John Ledkov 🌈
Oh wow. fail. I'm not sure it's worth tracking here, given it is an
upstream issue. I guess we can set this bug to trianged.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-22 Thread Phillip Susi
Yea, the tripping point for me was that I was importing a single file
with both private and public keys in it, and that wasn't fixing it.  The
import has to be of *only* the public keys.  Hopefully upstream will fix
that part so the upgrade ( which automatically does an export/import )
will then work correctly.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-22 Thread Dimitri John Ledkov 🌈
So yeah, my suggestion to reimport public key was right. It is an odd
corner case. I think it has to do with something how the upstream choose
to reorganize public & secret keyrings; such that the split of which
bits need to be where is now different, and the export of old is either
incomplete for what the new one wants or the new one does import all the
right things during migration.

I think it is prudent to refresh / have an up to date public key,
wherever private keys are. I've seen this trip up a few people, but it
is a bit of a self-service that one must do when migrating to 2.1
unfortunately.

It could be "fixed" by automatic refreshing of public keys but we
are not going to do that.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-22 Thread Phillip Susi
Here is the upstream bug report, which launchpad apparently does not
recognize:

https://dev.gnupg.org/T3101

The workaround is to re-import only the public key, or in my case, I
just did a --recv-keys to fetch it from keyserver.ubuntu.com and that
pulled in the updated selfsig.

I understand that it now uses gpg-agent, but what I don't understand is
why it bothers to do so just to import.  It doesn't need to decrypt the
key at that point; only copy it into the keyring.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-21 Thread Dimitri John Ledkov 🌈
Is the public key, with the new expiry date, and that selfsig, imported?

Sounds like an upstream bug.

Can we replicate that bug now with fresh keys? e.g. make key past-expiry
(possibly under faketime), make subkey, extend master key expiry, export
subkeys, import subkeys, see them expired? or something like that?

Re: full screen stuff, that is mandatory usage of pinentry/gpg-agent.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-21 Thread Phillip Susi
Ahah, gpg -K -v shows them... it seems to think they are all expired.
It lists the expiration date on my current key as 2018-1-6.  I believe
that was the *original* expiration date, but then I extended it.  gpg
2.1 seems to be failing to recognize the extension.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-21 Thread Phillip Susi
So I went back to 2.0.31, deleted ~/.gnupg, imported my keys, made sure
they all showed up, then upgraded to 2.1.1.  It converted to the new
keybox format, and... my private keys are all gone.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-20 Thread Phillip Susi
So I cloned the upstream git repo and built 2.0.31 and it works.  2.2.4
does not.  Anywhere in the 2.1 area in between seems to have some
protection turned out to tell you not to use production keys with a
development branch and it refuses to import *any* secret key.  Any idea
how to bypass this?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-20 Thread Phillip Susi
I noticed something different about the new version of gpg is that I get
a full screen prompt for my password when importing, but the old version
does not do that.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-20 Thread Phillip Susi
Generating a new keypair and exporting only the subkey and then
importing it into 18.04 seems to work.  There must be something
particular about my existing keychain.  I guess I'll have to start git
bisecting.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-20 Thread Dimitri John Ledkov 🌈
can you provide commands to generate test keys/subkeys, to recreate
this?

i do not appear to loose any subkeys at all, and i use subkeys only by
default, without master key.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-20 Thread Phillip Susi
The permissions are probably world readable because as I said, I tried
deleting the whole directory and recreating it by hand, then copying the
secring over from the working system.  This was after deleting the whole
directory and letting gpg recreate it, then importing the keys exported
from a working system.  Whether by import or auto conversion to the new
format, gpg discards the private keys.  This may be because the primary
key is not included because I normally keep that offline.


** Changed in: gnupg2 (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1777710] Re: gpg throws out my secret keys after upgrade to 18.04

2018-06-19 Thread Dimitri John Ledkov 🌈
what are the permissions of /home/psusi ? and /home/psusi/.gnupg ?

it is not safe if .gnupg; or the directory that contains it; are
group|other writable.

new gpg uses keybox, whilst old gpg uses pub/secring.gpg. whenever new
gpg was first executed against this .gnupg the old secring got auto
converted to a keybox and from that point on the secrings & keybox no
longer maintained in sync.

Please check .gnupg/private-keys-v1.d/* folder and if that contains
expected subkeys. If not try to use old gpg to export the subkeys; and
re-import them with a new gpg, such that they migrate into the keybox
structure.

** Changed in: gnupg2 (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/110

Title:
  gpg throws out my secret keys after upgrade to 18.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnupg2/+bug/110/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs