Moderadors: jordis, Andreu, cubells
~ $ gpg --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
Reading passphrase from file descriptor 0 ...
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ gpg --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
Faig "Enter" i diu això:
- Codi: Selecciona’ls tots
Reading passphrase from file descriptor 0 ...
En aquest punt no se que fer. Posi el que posi, surt això:
- Codi: Selecciona’ls tots
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
Potser no he entès el que he de fer.
gpg --version
~ $ gpg -version
gpg: sion: es descarta: no s'ha trobat la clau pública
gpg: [stdin]: encryption failed: no s'ha trobat la clau pública
mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ gpg -version
gpg: sion: es descarta: no s'ha trobat la clau pública
gpg: [stdin]: encryption failed: no s'ha trobat la clau pública
gpg --version
~ $ gpg --version
gpg (GnuPG) 1.4.16
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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: ~/.gnupg
Algoritmes suportats:
Clau pública: RSA, RSA-E, RSA-S, ELG-E, DSA
Xifratge: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Dispersió: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compressió: No comprimit, ZIP, ZLIB, BZIP2
mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ gpg --version
gpg (GnuPG) 1.4.16
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://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: ~/.gnupg
Algoritmes suportats:
Clau pública: RSA, RSA-E, RSA-S, ELG-E, DSA
Xifratge: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Dispersió: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compressió: No comprimit, ZIP, ZLIB, BZIP2
echo "ESCRIU-AQUÍ-LA-TEVA-CONTRASENYA" | gpg --batch --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
~ $ echo "+Ratafia1714" | gpg --batch --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ echo "+Ratafia1714" | gpg --batch --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
gpg --list-secret-keys
xxavi ha escrit:mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ echo "+Ratafia1714" | gpg --batch --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
Hola mqlb ,
Bé, després d'algun dubte de si funcionave correctament la funció interna de STDIN, semble que funcione, això vol dir que reb correctament el que li passem.
Ara, com ere d'esperar en una configuració estandard, no accepte la clau mestra ja que, la clau mestra no es la clau secreta concreta per a cada xifratge.
Ara el que hem de fer és llista les claus secretes que són conegudes en la teva configuració i després les puntejarem als diferents ID que s'han mostrat. Anem a veure-ho:
- Codi: Selecciona’ls tots
gpg --list-secret-keys
Sort.
~ $ gpg --list-secret-keys
miquel@miquel-pc ~ $
mqlb ha escrit:xxavi ha escrit:mqlb ha escrit:
- Codi: Selecciona’ls tots
~ $ echo "+Ratafia1714" | gpg --batch --passphrase-fd 0 --output "/home/miquel/Baixades/Telegram Desktop/Actes/gnupg-prova/" --decrypt "/home/miquel/Baixades/Telegram Desktop/Actes/2018-08-21.pdf.gpg"
gpg: encrypted with RSA key, ID F91179A7
gpg: encrypted with RSA key, ID BE93BDE5
gpg: encrypted with RSA key, ID 5E002704
gpg: encrypted with RSA key, ID 58B42249
gpg: encrypted with RSA key, ID 11E88426
gpg: encrypted with RSA key, ID 61AC364C
gpg: encrypted with RSA key, ID ECF73EA2
gpg: encrypted with RSA key, ID 659EB693
gpg: encrypted with RSA key, ID 5BC33749
gpg: ha fallat el desxifratge: la clau secreta no està disponible
Hola mqlb ,
Bé, després d'algun dubte de si funcionave correctament la funció interna de STDIN, semble que funcione, això vol dir que reb correctament el que li passem.
Ara, com ere d'esperar en una configuració estandard, no accepte la clau mestra ja que, la clau mestra no es la clau secreta concreta per a cada xifratge.
Ara el que hem de fer és llista les claus secretes que són conegudes en la teva configuració i després les puntejarem als diferents ID que s'han mostrat. Anem a veure-ho:
- Codi: Selecciona’ls tots
gpg --list-secret-keys
Sort.
- Codi: Selecciona’ls tots
~ $ gpg --list-secret-keys
miquel@miquel-pc ~ $
Xxavi, no surt res.
gpg -K
mqlb ha escrit:Hola mqlb ,
Acabem-ho de mirar, prova:
- Codi: Selecciona’ls tots
gpg -K
Hola xxavi, tampoc retorna res.
ls -la /home/miquel/
Hola mqlb ,
Disculpa la tardança en respondre.
De les últimes proves el GnuPG "no té les claus".
Mirem si estan guardades en algún lloc:
~ $ ls -la /home/miquel/
total 1664
drwxr-xr-x 30 miquel miquel 4096 set 3 19:43 .
drwxr-xr-x 5 root root 4096 nov 15 2016 ..
drwx------ 3 miquel miquel 4096 nov 14 2016 .adobe
drwxr-xr-x 4 miquel miquel 4096 set 2 00:44 Baixades
-rw------- 1 miquel miquel 3473 ago 28 15:13 .bash_history
-rw-r--r-- 1 miquel miquel 220 nov 14 2016 .bash_logout
drwx------ 11 miquel miquel 4096 set 1 22:02 .cache
-rw-r--r-- 1 miquel miquel 4 set 3 19:43 .cameramonitor.pid
drwxr-xr-x 5 miquel miquel 4096 set 3 19:43 .cinnamon
drwxr-xr-x 24 miquel miquel 4096 ago 10 18:48 .config
drwx------ 3 miquel miquel 4096 nov 14 2016 .dbus
-rw------- 1 miquel miquel 29 set 3 19:43 .dmrc
drwxr-xr-x 13 miquel miquel 4096 ago 12 19:10 Documents
drwxr-xr-x 2 miquel miquel 4096 ago 4 17:04 Escriptori
-rw-r--r-- 1 miquel miquel 2901 des 23 2017 Firefox_wallpaper.png
drwx------ 4 miquel miquel 4096 set 3 19:43 .gconf
drwxr-xr-x 24 miquel miquel 4096 set 2 23:10 .gimp-2.8
-rw-r----- 1 miquel miquel 0 ago 22 17:41 .gksu.lock
drwx------ 4 miquel miquel 4096 nov 15 2016 .gnome2
drwx------ 2 miquel miquel 4096 nov 14 2016 .gnome2_private
drwx------ 2 miquel miquel 4096 ago 28 15:13 .gnupg
-rw-r--r-- 1 miquel miquel 940 abr 21 23:25 .gtk-recordmydesktop
-rw------- 1 miquel miquel 86460 set 3 19:43 .ICEauthority
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 .icons
drwxr-xr-x 6 miquel miquel 12288 ago 26 18:02 Imatges
drwx------ 3 miquel miquel 4096 nov 14 2016 .kde
drwxr-xr-x 4 miquel miquel 4096 nov 14 2016 .linuxmint
drwxr-xr-x 3 miquel miquel 4096 nov 14 2016 .local
drwx------ 3 miquel miquel 4096 nov 14 2016 .macromedia
drwxr-xr-x 5 miquel miquel 4096 nov 21 2017 .mozilla
-rw-r--r-- 1 miquel miquel 85488 des 23 2017 mozilla.pdf
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Música
-rw-r--r-- 1 miquel miquel 1304245 abr 21 23:35 out-1.ogv
drwx------ 3 miquel miquel 4096 abr 23 20:24 .pki
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Plantilles
-rw-r--r-- 1 miquel miquel 675 nov 14 2016 .profile
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Públic
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 .themes
drwx------ 3 miquel miquel 4096 set 25 2017 .thumbnails
drwxr-xr-x 4 miquel miquel 4096 mar 13 20:37 .tor-browser-en
drwxr-xr-x 2 miquel miquel 4096 nov 15 2016 Vídeos
-rw------- 1 miquel miquel 120 set 3 19:43 .Xauthority
-rw-r--r-- 1 miquel miquel 130 jul 2 2017 .xinputrc
-rw-r--r-- 1 miquel miquel 41914 set 3 20:00 .xsession-errors
mqlb ha escrit:Hola mqlb ,
Disculpa la tardança en respondre.
De les últimes proves el GnuPG "no té les claus".
Mirem si estan guardades en algún lloc:
Gràcies xxavi. Aquí va:
- Codi: Selecciona’ls tots
~ $ ls -la /home/miquel/
total 1664
drwxr-xr-x 30 miquel miquel 4096 set 3 19:43 .
drwxr-xr-x 5 root root 4096 nov 15 2016 ..
drwx------ 3 miquel miquel 4096 nov 14 2016 .adobe
drwxr-xr-x 4 miquel miquel 4096 set 2 00:44 Baixades
-rw------- 1 miquel miquel 3473 ago 28 15:13 .bash_history
-rw-r--r-- 1 miquel miquel 220 nov 14 2016 .bash_logout
drwx------ 11 miquel miquel 4096 set 1 22:02 .cache
-rw-r--r-- 1 miquel miquel 4 set 3 19:43 .cameramonitor.pid
drwxr-xr-x 5 miquel miquel 4096 set 3 19:43 .cinnamon
drwxr-xr-x 24 miquel miquel 4096 ago 10 18:48 .config
drwx------ 3 miquel miquel 4096 nov 14 2016 .dbus
-rw------- 1 miquel miquel 29 set 3 19:43 .dmrc
drwxr-xr-x 13 miquel miquel 4096 ago 12 19:10 Documents
drwxr-xr-x 2 miquel miquel 4096 ago 4 17:04 Escriptori
-rw-r--r-- 1 miquel miquel 2901 des 23 2017 Firefox_wallpaper.png
drwx------ 4 miquel miquel 4096 set 3 19:43 .gconf
drwxr-xr-x 24 miquel miquel 4096 set 2 23:10 .gimp-2.8
-rw-r----- 1 miquel miquel 0 ago 22 17:41 .gksu.lock
drwx------ 4 miquel miquel 4096 nov 15 2016 .gnome2
drwx------ 2 miquel miquel 4096 nov 14 2016 .gnome2_private
drwx------ 2 miquel miquel 4096 ago 28 15:13 .gnupg
-rw-r--r-- 1 miquel miquel 940 abr 21 23:25 .gtk-recordmydesktop
-rw------- 1 miquel miquel 86460 set 3 19:43 .ICEauthority
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 .icons
drwxr-xr-x 6 miquel miquel 12288 ago 26 18:02 Imatges
drwx------ 3 miquel miquel 4096 nov 14 2016 .kde
drwxr-xr-x 4 miquel miquel 4096 nov 14 2016 .linuxmint
drwxr-xr-x 3 miquel miquel 4096 nov 14 2016 .local
drwx------ 3 miquel miquel 4096 nov 14 2016 .macromedia
drwxr-xr-x 5 miquel miquel 4096 nov 21 2017 .mozilla
-rw-r--r-- 1 miquel miquel 85488 des 23 2017 mozilla.pdf
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Música
-rw-r--r-- 1 miquel miquel 1304245 abr 21 23:35 out-1.ogv
drwx------ 3 miquel miquel 4096 abr 23 20:24 .pki
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Plantilles
-rw-r--r-- 1 miquel miquel 675 nov 14 2016 .profile
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 Públic
drwxr-xr-x 2 miquel miquel 4096 nov 14 2016 .themes
drwx------ 3 miquel miquel 4096 set 25 2017 .thumbnails
drwxr-xr-x 4 miquel miquel 4096 mar 13 20:37 .tor-browser-en
drwxr-xr-x 2 miquel miquel 4096 nov 15 2016 Vídeos
-rw------- 1 miquel miquel 120 set 3 19:43 .Xauthority
-rw-r--r-- 1 miquel miquel 130 jul 2 2017 .xinputrc
-rw-r--r-- 1 miquel miquel 41914 set 3 20:00 .xsession-errors
ls -lRa /home/miquel/.gnupg/
~ $ ls -lRa /home/miquel/.gnupg/
/home/miquel/.gnupg/:
total 24
drwx------ 2 miquel miquel 4096 ago 28 15:13 .
drwxr-xr-x 30 miquel miquel 4096 set 4 17:52 ..
-rw------- 1 miquel miquel 9398 ago 22 17:19 gpg.conf
-rw------- 1 miquel miquel 0 ago 22 17:19 pubring.gpg
-rw------- 1 miquel miquel 0 ago 22 17:19 secring.gpg
-rw------- 1 miquel miquel 40 ago 22 17:19 trustdb.gpg
Usuaris navegant en aquest fòrum: No hi ha cap usuari registrat i 32 visitants