[Solved]mga7: gpg --output $output $input.asc stopped workin

[Solved]mga7: gpg --output $output $input.asc stopped workin

Postby mvjap3 » Jun 21st, '20, 07:36

Well that is it stopped working on my laptop after successfully completing a network upgrade from mga6 to mga7 as per the wiki instructions.

But on my desktop on which I did the same upgrade pgp still works. But not the same as before. With mga6 there was a little pop-up gui input box for my passphrase.
Now the desktop does this:
Code: Select all
  Please enter the passphrase to unlock the OpenPGP secret key:
  "Joe Philbrook <X current email omited X>"           
  3072-bit RSA key, ID ED355E3B113C4D71,           
  created 2014-05-09 (main key ID 619B4410F8549389).           
             
             
  Passphrase: __________________________________________________
             
          <OK>                                    <Cancel>   


Which is cool as long as it works. But on my laptop after the update NOTHING asks for my passphrase instead since it didn't let me provide the necessary passphrase it goes directly to this:
Code: Select all
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: encrypted with 1024-bit ELG key, ID 662DACFD225FDC6D, created 2004-05-17
      "Joe(theWordy)Philbrook (JtWdyP) <jtwdyp@ttlc.net>"
gpg: public key decryption failed: Operation cancelled
gpg: encrypted with 3072-bit RSA key, ID ED355E3B113C4D71, created 2014-05-09
      "Joe Philbrook <X current email omited X>"
gpg: public key decryption failed: Operation cancelled
gpg: decryption failed: No secret key


Which is NOT cool. If I can't open my encrypted password clues file on the laptop and my desktop has a meltdown, I won't be able to do my online banking or even login to this forum to ask for help. Without requesting a password reset that is...

Anybody know how to get gpg on mageia 7 to use a pop-up gui input box???

Could the problem be that gpg looks for a particular secure input box that didn't get automatically reinstalled after I used the mirrorlist method to rebuild my media sources?
In which case maybe all I need is to know the package name of the pop-up gpg likes
so I can urpmi it?
Last edited by mvjap3 on Jun 27th, '20, 23:51, edited 1 time in total.
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 21st, '20, 11:48

What desktop environment do you use? Is gpg-agent running ? And please show the output of
Code: Select all
rpm -qa | grep -i pinentry
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 21st, '20, 20:24

I think your on to something.
In reverse order:
First the pinenty:
my laptop which isn't working says:
pinentry_2020-06-21_laptop.png
pinentry_2020-06-21_laptop.png (14.45 KiB) Viewed 532 times

And the desktop which works differently now says:
pinentry_2020-06-21_desktop.png
pinentry_2020-06-21_desktop.png (20.85 KiB) Viewed 532 times

Next about gpg-agent
I've been using the same shell script to use "vim -n -i NONE filename" to access my decrypted secure file. And then to optionally update the encrypted file before deleting the decrypted file for years, in multiple distributions. And I never wanted to fuss with a user agent So I'm certain "I" never turned it on. What's the simpleist way to find out if it's running anyway?
As to what desktop... Not exactly:
I boot to that multiuser target sometimes called runlevel 3:
Since I figured out how to get the openbox window manager to work like I want I've always found a way to disable even using a displahy manager in favor of:
Code: Select all
> cat .xinitrc
# note this file is an inactive ~/.xinitrc file that is activated when
# the ~/bin2nd/xdo script temporarily copies it to ~/.xinitrc prior
# to calling startx...
###################################
# yakuake &                       #
# use yakuake OR qterminal --drop #
# same purpose same hot key...    #
qterminal --drop &                #
###################################
lxpanel &
xrdb -load .Xdefaults
/usr/bin/openbox-session

ever since I gave up on enlightenment the only other .xinitrc my xdo script can output is:
Code: Select all
# note this file is an inactive ~/.xinitrc file that is activated when
# the ~/bin2nd/xdo script temporarily copies it to ~/.xinitrc prior
# to calling startx...
###################################
# yakuake &                       #
# use yakuake OR qterminal --drop #
# same purpose same hot key...    #
qterminal --drop &                #
###################################
xrdb -load .Xdefaults
exec /usr/bin/startlxqt


This is the same on both the desktop and the laptop and on every Linux distribution I've had on either one. Though currently the only other distro I multiboot with is opensuse. And lately that's mostly because it's easier to fsck my linux file systems
(using a /root/bin script of course) from a fully installed Linux than from a rescue cd. Because my CRS keeps me from remembering all the pathnames involved. But if the power didn't go out, I just boot mageia...
And usually it just works.
Last edited by isadora on Jun 22nd, '20, 08:12, edited 1 time in total.
Reason: Removed quote; as a golden rule quoting the last comment is not appropriate.
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 21st, '20, 22:03

Well, if you don't want to run gpg-agent, then you will need to take care to start pinentry yourself in your session.

On how to check if it's running, simply
Code: Select all
ps -ef|grep gpg-agent

By default it's started as a systemd user service - see /usr/lib/systemd/user/gpg-agent.service

For more information, check the man page of gpg-agent

man gpg-agent wrote:[...]
Please make sure that a proper pinentry program has been installed under the default filename (which is system de‐
pendent) or use the option pinentry-program to specify the full name of that program. It is often useful to in‐
stall a symbolic link from the actual used pinentry (e.g. ‘/usr/bin/pinentry-gtk’) to the expected one (e.g.
‘/usr/bin/pinentry’).
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 22nd, '20, 00:08

doktor5000 wrote:Well, if you don't want to run gpg-agent, then you will need to take care to start pinentry yourself in your session.

I notice that if I just call pinentry in a konsole it won't let go of the konsole session even if:
Code: Select all
pinentry &

So I was thinking of putting the same line in my .xinitrc until I let it keep a konsole session
long enough for:
Code: Select all
 ~
UnderTree=-> ps -A|grep pinentry
16982 pts/9    00:00:00 pinentry-qt5

to confirm it started but I'm still getting:
Code: Select all
gpg: decryption failed: No secret key

????
Last edited by doktor5000 on Jun 22nd, '20, 13:24, edited 1 time in total.
Reason: removed fullquote
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 22nd, '20, 13:39

pinentry is not supposed to be running as a service. It's the program that takes e.g. your key password and passes it to whatever it's configured to pass it to (usually gpg-agent).

Apart from the vim command you mentioned, how are the files you encrypted are supposed to be decrypted?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 22nd, '20, 20:28

doktor5000 wrote:pinentry is not supposed to be running as a service. It's the program that takes e.g. your key password and passes it to whatever it's configured to pass it to (usually gpg-agent).

So then is gpg supposed to, when called as "gpg --output outfile infile", call pinentry itself or does it ask gpg-agent to?

I don't really remember why being expected to let gpg-agent do it's thing bugged me so much any more. If you actually think setting that up to run could solve this issue, I'm willing to try it. If you think so, please decribe how to *enable it.

* That is without having to run an actual desktop environment instead of just openbox as a window manager.)

Sorry to be such a nuisance. And it would be unfair for me to just blame my CRS, because I always had trouble when I'd try to grok man or info documentation, usually by the time I finaly found the detail I needed, I couldn't remember why I needed it. Hmmnn maybe I can blame CRS after all...I've just had it longer than I thought... ;-7

doktor5000 wrote:Apart from the vim command you mentioned, how are the files you encrypted are supposed to be decrypted?


It would probably be easier to just include a copy of the script I've been using for years than for me to coherently explain what I only halfway remember what I was thinking when I wrote it...
Code: Select all
#!/bin/bash
# j-pass is an updated version of my Jpass script that uses the encryption
# key for jtwdyp@########## instead of defunct jtwdyp@ttlc.net. Written
# to share the same data directory as Jpass, and to optionaly also save
# changes to the old Jpass files {overwriting the files}
# edit/view with "vim -n -i NONE filename" option to avoid saving vimInfo data
# and to use No swap file
#
#first we test for existance of the sourcefile(s) etc ...
if [ -f ~/com/.crossfile/.j-words.out ]
then
   rm ~/com/.crossfile/.j-words.out
   echo "NOTICE: it looks like j-pass wasn't closed cleanly"
fi
if [ -f ~/com/.crossfile/.words.out ]
then
   rm ~/com/.crossfile/.words.out
   echo "NOTICE: it looks like the old Jpass wasn't closed cleanly"
fi
if [ -f ~/com/.crossfile/.j-words ]
then
   echo "found ~/com/.crossfile/.j-words"
   if [ -f ~/com/.crossfile/.j-words.asc ]
   then
      echo "found ~/com/.crossfile/.words.asc"
      # do decryption and mangle tmp out file
       gpg --output ~/com/.crossfile/.j-words.out ~/com/.crossfile/.j-words.asc
       cp ~/com/.crossfile/.j-words.out ~/com/.crossfile/.j-words
      cat /etc/fstab>~/com/.crossfile/.j-words.out
      wc -c ~/com/.crossfile/.j-words>~/com/.crossfile/.j-words.cnt
      wc -c ~/com/.crossfile/.j-words.out>~/com/.crossfile/.j-words.out.cnt
      read Wc dummy <~/com/.crossfile/.j-words.cnt
      read WOc dummy<~/com/.crossfile/.j-words.out.cnt
      while [ $WOc -le $Wc ]
      do
         cat /etc/fstab>>~/com/.crossfile/.j-words.out
         wc -c ~/com/.crossfile/.j-words>~/com/.crossfile/.j-words.cnt
         wc -c ~/com/.crossfile/.j-words.out>~/com/.crossfile/.j-words.out.cnt
         read Wc dummy <~/com/.crossfile/.j-words.cnt
         read WOc dummy<~/com/.crossfile/.j-words.out.cnt
      done   
      rm ~/com/.crossfile/.j-words.cnt ~/com/.crossfile/.j-words.out.cnt
      # open decrypted file
      vim -n -i NONE ~/com/.crossfile/.j-words
      #prompt if changes should be saved
      echo
      echo "WARNING: the copy of .j-words you just edited will be deleted..."
      echo
      echo "{ Enter Y } to save changes to encrypted record first."
      echo
      echo "{ Enter B } to save changes to encrypted record for both j-pass & Jpass."
      echo "            Note: that will overwrite whatever is in those files now..."
      echo
      echo "{ Enter anything else } to discard any/all changes."
      read DoWhat
      case $DoWhat in
         y*|Y*) rm ~/com/.crossfile/.j-words.asc;
            gpg --output ~/com/.crossfile/.j-words.asc -e -r 0xF8549389 ~/com/.crossfile/.j-words;
            echo "changes saved";;
         b*|B*) rm ~/com/.crossfile/.j-words.asc;
                rm ~/com/.crossfile/.words.asc;
            gpg --output ~/com/.crossfile/.j-words.asc -e -r 0xF8549389 ~/com/.crossfile/.j-words;
            gpg --output ~/com/.crossfile/.words.asc -e -r 0x6C2163DE ~/com/.crossfile/.j-words;
         # zap .words and cleanup
            cp ~/com/.crossfile/.j-words.out ~/com/.crossfile/.words;
            rm ~/com/.crossfile/.words;
            cp ~/com/.crossfile/.words.asc ~/com/.crossfile/.words;
            echo "changes saved & copied to Jpass";;
         *) echo "changes NOT saved... Kiss them goodbye!";;
      esac
         # zap .j-words and cleanup
         cp ~/com/.crossfile/.j-words.out ~/com/.crossfile/.j-words
         rm ~/com/.crossfile/.j-words.out ~/com/.crossfile/.j-words
         cp ~/com/.crossfile/.j-words.asc ~/com/.crossfile/.j-words
   else
      echo "~/com/.crossfile/.j-words.asc NOT found"
      echo
      echo "It may be possible to simply copy the existing .j-words to .jwords.asc"
      echo "and then run j-pass again."
      echo "Else extract data from Jpass files, and hope for the best."
   fi
else
   echo "~/com/.crossfile/.j-words NOT found"
   if [ -f ~/com/.crossfile/.j-words.asc ]
   then
      echo "But did find ~/com/.crossfile/.j-words.asc"
      echo
      echo "So it might work to copy .j-words.asc to .j-words"
      echo "and then run j-pass again."
      echo "Else extract data from Jpass files, and hope for the best."
      echo
   else
      echo "~/com/.crossfile/.words.asc NOT found"
      echo
      echo "Try extracting data from Jpass files, and hope for the best."
      echo
   fi
fi

echo
echo " ls -al ~/com/.crossfile"
echo
ls -al ~/com/.crossfile
echo
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 23rd, '20, 11:08

mvjap3 wrote:So then is gpg supposed to, when called as "gpg --output outfile infile", call pinentry itself or does it ask gpg-agent to?

I don't really remember why being expected to let gpg-agent do it's thing bugged me so much any more. If you actually think setting that up to run could solve this issue, I'm willing to try it. If you think so, please decribe how to *enable it.

Well I don't use gpg that often, only with the default setup which just works. That is, gpg-agent is started by the systemd user service (as previously mentioned, see /usr/lib/systemd/user/gpg-agent.service for that) which then asks pinentry if required.
You should probably read up on that yourself, see e.g. https://wiki.archlinux.org/index.php/GnuPG#gpg-agent

Regarding your first question, going by the man page it first asks the agent:
man gnupg wrote: --pinentry-mode mode
Set the pinentry mode to mode. Allowed values for mode are:

default
Use the default of the agent, which is ask.


ask Force the use of the Pinentry.

cancel Emulate use of Pinentry's cancel button.

error Return a Pinentry error (``No Pinentry'').

loopback
Redirect Pinentry queries to the caller. Note that in contrast to Pinentry the user is not prompted
again if he enters a bad password.



mvjap3 wrote:It would probably be easier to just include a copy of the script I've been using for years than for me to coherently explain what I only halfway remember what I was thinking when I wrote it...

Maybe better use something that already exists instead of reinventing the wheel ? Check e.g. https://www.passwordstore.org/
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 25th, '20, 22:55

doktor5000 wrote:Well I don't use gpg that often, only with the default setup which just works. That is, gpg-agent is started by the systemd user service (as previously mentioned, see /usr/lib/systemd/user/gpg-agent.service for that) which then asks pinentry if required.
You should probably read up on that yourself, see e.g. https://wiki.archlinux.org/index.php/GnuPG#gpg-agent
mvjap3 wrote:It would probably be easier to just include a copy of the script I've been using for years than for me to coherently explain what I only halfway remember what I was thinking when I wrote it...

Maybe better use something that already exists instead of reinventing the wheel ? Check e.g. https://www.passwordstore.org/


Maybe the password store is better. But it's not good for the way I allegedly think.
I'm feeling a bit frustrated because:
1) my set-up was working in mageia 6
2) I looked at that wiki but it mostly just confused me. Because just like most man or info documents, it's so full of info I'm not looking for, that by the time I see something I could have used I've lost focus and either miss it or can't remember what I wanted to do with it.
{sigh} I did mention my CRS, I wasn't joking: in my case that has to do with most anything I don't do the same way every day for a long time. And it's been a very long time since I had to do anything to fix this.
3)while I was trying to figure it out I found this in the gpg-agent man page:
Code: Select all
 As an alternative you may create a new process as a child of gpg-agent:  gpg-agent
 --daemon  /bin/sh.   This way you get a new shell with the environment setup prop‐
 erly; after you exit from this shell, gpg-agent terminates within a few seconds.

So I decided to see if making sure gpg-agent had the right environment when it calls pinentry would make any difference. But just to be really sure I started by rebooting... then I didn't open anything I didn't need for this. The following sequence is the result.
Code: Select all
JtWdyP -> ~
> gpg --output ~/tmp/j-words.out ~/com/.crossfile/.j-words.asc
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: encrypted with 1024-bit ELG key, ID 662DACFD225FDC6D, created 2004-05-17
      "Joe(theWordy)Philbrook (JtWdyP) <jtwdyp@ttlc.net>"
gpg: encrypted with 3072-bit RSA key, ID ED355E3B113C4D71, created 2014-05-09
      "Joe Philbrook <currently-valid@email-ommited>"
gpg: decryption failed: No secret key
JtWdyP -> ~
> /usr/bin/gpg-agent --daemon /bin/sh
gpg-agent: a gpg-agent is already running - not starting a new one
JtWdyP -> ~
> killall gpg-agent
JtWdyP -> ~
> /usr/bin/gpg-agent --daemon /bin/sh
JtWdyP -> ~
> gpg --output ~/tmp/j-words.out ~/com/.crossfile/.j-words.asc
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: encrypted with 1024-bit ELG key, ID 662DACFD225FDC6D, created 2004-05-17
      "Joe(theWordy)Philbrook (JtWdyP) <jtwdyp@ttlc.net>"
gpg: encrypted with 3072-bit RSA key, ID ED355E3B113C4D71, created 2014-05-09
      "Joe Philbrook <#####@#######>"
gpg: decryption failed: No secret key
JtWdyP -> ~
> exit
JtWdyP -> ~
>


So What I get out of that is:
A) That gpg-agent was already running after a reboot and so is being started by the systemd user service.

B) That even when "gpg --output $outfile $infile,asc" is run inside a shell that gpg-agent called so that it would have the right environment setup, it's still failing.

If I'm wrong about that, please tell me.

Otherwise would you have any other suggestions for me?
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 25th, '20, 23:23

Can you post the output of
Code: Select all
gpg --version
gpg --list-keys
gpg --list-secret-keys

Please omit privacy-related stuff, as you did already. And it might be helpful if you could run your decrypt command with -vv added on top.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 26th, '20, 03:15

doktor5000 wrote:Can you post the output of
Code: Select all
gpg --version
gpg --list-keys
gpg --list-secret-keys

Please omit privacy-related stuff, as you did already. And it might be helpful if you could run your decrypt command with -vv added on top.


OK I can do most of that.
But I'm not sure about the:
And it might be helpful if you could run your decrypt command with -vv added on top.

part... Oh is that what you meant?
Since I already did the part I understood and wiped a lot of privacy stuff (mostly other peoples).
And I don't know if you might still want some of it, I'll leave it in (below) But:
Code: Select all
gpg -vv --output ~/tmp/j-words.out ~/com/.crossfile/.j-words.asc

decrypted .j-words.asc to ~/tmp/j-words.out

I also note that it used a gui pop-up to take the pass phrase.

At this point I'm thinking you know exactly what my problem was...
If you wouldn't mind explaining it in the simplistic kind of terms I seem to understand, I'd be ever so grateful.

It might also prove useful. Especially if this doesn't mean I should just insert the "-vv" into the decription command in my shell script....

Code: Select all
JtWdyP -> ~
> gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/jtwdyp/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
JtWdyP -> ~
>

 
JtWdyP -> ~
> gpg --list-keys
/home/jtwdyp/.gnupg/pubring.gpg
-------------------------------
pub   dsa1024 2004-05-17 [SC]
      47D90CEA4FAB20B19CBFB1C8459FFAD66C2163DE
uid           [ultimate] Joe(theWordy)Philbrook (JtWdyP) <xxxxxx@xxxx.xxx>
sub   elg1024 2004-05-17 [E]

pub   dsa1024 2003-07-02 [SCA] [revoked: 2004-05-17]
      23ADAE2BA869847E5D2D027468019C9CF5EDAC9B
uid           [ revoked] Joe(theWordy)Philbrook <xxxxxx@xxxx.xxx>
uid           [ revoked] jtwdyp

pub   dsa1024 2001-06-20 [SCA]
      811ED939468E6C2C9CF793EE934F45E94B6DCD32
uid           [ unknown] somebody else  <xxxxx@xxxx.xxx>
sub   elg1024 2001-06-20 [E]

pub   dsa1024 2004-04-06 [SCA]
      AB47694F23F1447874AE767D73B9452E3056296D
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2004-04-06 [E]

pub   dsa1024 2004-03-11 [SC] [expired: 2006-03-11]
      D77D4E77437584B4F764E7A88DAF54D8CE9F8922
uid           [ expired] somebody else  <xxxxxx@xxxx.xxx>

pub   dsa1024 1999-07-13 [SCA]
      230788FD2D41038E741614CDE1976E88ED695653
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 1999-07-13 [E]

pub   dsa1024 2001-04-25 [SCA]
      D0B66EDF5C0A93CA9FB8A75BC804300BCF037039
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 2001-04-25 [E]

pub   dsa1024 2001-12-04 [SCA]
      1AA9AEC9BFDFFF7AE4F890C749473A4185A92DCC
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2001-12-04 [E]

pub   dsa1024 2004-05-16 [SCA]
      4C0F5187B8B0AF969F97E91F23C915A432F6748D
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg4096 2004-05-16 [E]

pub   dsa1024 2000-07-03 [SCA]
      E55DC93EBF128CDA2D362482692AC459E42D547B
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2000-07-03 [E]

pub   dsa1024 2003-08-24 [SCA]
      EBC6E12C62B1C734026B2122A20E52146B8D79E6
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2003-08-24 [E]

pub   dsa1024 2002-11-25 [SCA] [expired: 2007-11-24]
      785A304B08C1F291F54F9A686BDDFE8E54A2ACF1
uid           [ expired] somebody else  <xxxxxx@xxxx.xxx>

pub   dsa1024 2003-10-27 [SCA]
      CAB44B996F27744E86127CDFB44269D04F2A6FD2
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2003-10-27 [E]

pub   dsa1024 2003-10-27 [SCA]
      3166C14AAE7230D93B7AB2F6DA84CBD430C9ECF8
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>

pub   dsa1024 2002-12-03 [SCA]
      85C2F9831D020C3DB27863FC8CA7830B13090932
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 2002-12-03 [E]

pub   dsa1024 2003-03-27 [SCA]
      B5BDCEB28F0D54DE6F4D227529D5BA248DF56D05
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 2003-03-27 [E]

pub   dsa1024 2004-06-07 [SCA] [expired: 2005-06-07]
      897700CEBA00A76DAA22C92ABF03AC7A49983E2A
uid           [ expired] somebody else  <xxxxxx@xxxx.xxx>

pub   dsa1024 2005-09-30 [SCA] [expired: 2008-09-30]
      FBD962EC62C8036C61A3A4758B66606EB4D42E3A
uid           [ expired] somebody else  <xxxxxx@xxxx.xxx>

pub   dsa1024 2004-03-22 [SC]
      1911BE7598928AD4AA5C53F5B533181C6D8D47D5
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg1024 2004-03-22 [E]

pub   dsa1024 2009-05-01 [SC] [expired: 2011-05-01]
      5E2A01198E98730A87DF205C448572E1F0BE3724
uid           [ expired] somebody else  <xxxxxx@xxxx.xxx>
uid           [ expired] [jpeg image of size 8876]

pub   rsa2048 2010-07-12 [SC]
      49017267B18AF06936D178C15344211CFD7716C0
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   rsa2048 2010-07-12 [E]

pub   rsa3072 2014-05-09 [SC]
      D33F875EEB3B7BCDC7EC3E8E619B4410F8549389
uid           [ultimate] not somebody else  <xxxxxx@xxxx.xxx>
sub   rsa3072 2014-05-09 [E]

pub   dsa1024 2008-07-12 [SC]
      AF9D87600CFAF95A6C77E125BF90580F8D549279
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 2008-07-12 [E]

pub   dsa2304 2010-03-05 [SC]
      2DFEF284C39EB9F4080CFD7D8DAF146DC516335C
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2304 2010-03-05 [E]

pub   dsa1024 2008-04-20 [SCA]
      912CF4A8E2B38B02356798D853DD9453EB267D05
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
uid           [ unknown] somebody else  <xxxxxx@xxxx.xxx>
sub   elg2048 2008-04-20 [E]

JtWdyP -> ~
>



JtWdyP -> ~
> gpg --list-secret-keys
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/home/jtwdyp/.gnupg/secring.gpg' to gpg-agent
gpg: key 459FFAD66C2163DE: secret key imported
gpg: key 68019C9CF5EDAC9B: secret key imported
gpg: key 619B4410F8549389: secret key imported
gpg: migration succeeded
/home/jtwdyp/.gnupg/pubring.gpg
-------------------------------
sec   dsa1024 2004-05-17 [SC]
      47D90CEA4FAB20B19CBFB1C8459FFAD66C2163DE
uid           [ultimate] was not somebody else  <xxxxxx@xxxx.xxx>
ssb   elg1024 2004-05-17 [E]

sec   dsa1024 2003-07-02 [SCA] [revoked: 2004-05-17]
      23ADAE2BA869847E5D2D027468019C9CF5EDAC9B
uid           [ revoked] was not somebody else  <xxxxxx@xxxx.xxx>
uid           [ revoked] jtwdyp

sec   rsa3072 2014-05-09 [SC]
      D33F875EEB3B7BCDC7EC3E8E619B4410F8549389
uid           [ultimate] not somebody else  <xxxxxx@xxxx.xxx>
ssb   rsa3072 2014-05-09 [E]

JtWdyP -> ~
>
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 26th, '20, 10:35

mvjap3 wrote:At this point I'm thinking you know exactly what my problem was...
If you wouldn't mind explaining it in the simplistic kind of terms I seem to understand, I'd be ever so grateful.

I don't know what the problem is or was, at all. -vv only enables very verbose mode, which should have provided some hints what goes wrong.
My guess is that you were using gpg v1 the whole time, and as gpg2 is now the default, your keys were never properly migrated / imported to gpg2.
FWIW, gpg v1 has been removed with Mageia 7.

Something like this is what should have happened earlier:

JtWdyP -> ~
> gpg --list-secret-keys
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/home/jtwdyp/.gnupg/secring.gpg' to gpg-agent
gpg: key 459FFAD66C2163DE: secret key imported
gpg: key 68019C9CF5EDAC9B: secret key imported
gpg: key 619B4410F8549389: secret key imported
gpg: migration succeeded
/home/jtwdyp/.gnupg/pubring.gpg
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 26th, '20, 11:48

Something weird just happebed I was editing a reply to another topic and I think I brushed against the durned dell touchpad that doesn't let me disable tapping or scrolling options and poof, my other reply editor session is gone and I find myself inside the edit box of your latest reply on this topic before I even knew you replied. I may have something coherent to add to this later, but just now I'm switching to my desktop. Where there is no dagnabbed touchpad to mess up my input.

OK I'm back. Only this time I'm using the desktop... If I understand you then since that seems to have fixed my gpg access to my password clues file. do you think I might be getting the text type pass phrase prompt on the desktop instead of the pop-up input box I used to get could be related. And maybe I should do a:
Code: Select all
gpg --list-secret-keys
on the desktop as well???
Last edited by doktor5000 on Jun 26th, '20, 14:53, edited 1 time in total.
Reason: removed fullquote
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45

Re: mga7: gpg --output $output $input.asc stopped working

Postby doktor5000 » Jun 26th, '20, 14:55

I don't know, you have to try that out yourself on your setup.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 16080
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: mga7: gpg --output $output $input.asc stopped working

Postby mvjap3 » Jun 27th, '20, 03:50

Alright I will. Then I'll report the results and hopefully be able to mark this topic as solved, which if I remember correctly the prefered form is to put
Code: Select all
 [Solved]
in front of the topic line...

OK I'm back... No listing the secret keys made no diff to the desktop, but while I may be used to getting a wee pop-up pinentry box for my pass phrase, as long as the curses pinentry box works it's cool. And my laptop now gets a working pop-up pinentry box and can therefore drcrypt my $input.asc file. Which makes it cool to... So I'm calling this solved.

Thank you for all the kind hearted help Doctor5000.
mvjap3
 
Posts: 24
Joined: Aug 28th, '19, 03:45


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest