Page MenuHome GnuPG

Import secret keys created in Kleopatra with Windows 11 to Ubuntu
Open, NormalPublic



I exported and imported a secret key pair in asc file created in Windows 11 and it was successfully imported in Kleopatra Ubuntu, but when trying to decrypt a file signed in Windows with the same key it gives an error, is it only decryptable in Windows even though the private key Is it correct in Ubuntu?

Check importing from Ubuntu to Windows 11 and the error only works from Windows to Ubuntu


External Link
gpg -h gpg (GnuPG) 2.2.4 libgcrypt 1.8.1 Copyright (C) 2017 Free Software Foundation

Event Timeline

werner triaged this task as Normal priority.Nov 2 2023, 8:33 AM
werner edited projects, added Support, gnupg, Ubuntu; removed Bug Report.
werner added a subscriber: werner.

It is a bit hard for us to decipher the Spanish diagnostics. Before we can try to help you please update to a deent version of gpg and libgcrypt. At least the version for Ubuntu is way too old; Libgcrypt is 5 years old, the current version of the lTS branch is 1.8.10. GnuPG is also 10 years old and in the mean time we have fixed several critical bugs; the current version of this legacy branch is 2.2.41! Note that Ubuntu might have fixed some bugs despit ethe version number - we just can't know.

Regarding your error: Please check that your private key is indeed available. Do this on the command line:

gpg -K

lists allprivate keys - do you see your key?

thanks for your reply
gpg -K
gpg: enabled debug flags: memstat
uid [ absoluta ]
uid [ absoluta ]
ssb cv25519 2022-02-13 [E]
gpg -h
gpg (GnuPG) 2.2.4
libgcrypt 1.8.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.