Hello dear experts
how to import a key of a friend … into KGpg
is this possible with
gpg -a --import
https://forums.opensuse.org/image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
i guess that this is much more apropiate than this code
gpg -a -ihttps://forums.opensuse.org/image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
btw - or are there options to import directly without any comand line
can i import it directly with kgpg !?
hello dear all - i have apied the following code to the files
- note my friend send me two different files - pgp-files
i have applied the following line of code:
gpg -a --import [filename]
i have applied the code to the to existing files … which i wanted to import:
encrypted1.asc
encrypted2.asc
[martin@martin-pc Downloads]$ gpg -a --import encrypted1.asc
gpg: Keine gültigen OpenPGP-Daten gefunden.
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 0
[martin@martin-pc Downloads]$ gpg -a --import encrypted1.asc
gpg: Keine gültigen OpenPGP-Daten gefunden.
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 0
[martin@martin-pc Downloads]$ gpg -a --import encrypted2.asc
gpg: Keine gültigen OpenPGP-Daten gefunden.
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 0
[martin@martin-pc Downloads]$
hmm - i am wondering why it failed…
hello dear all
well the KGpg client has got a button that supports a import
but if i use this button i get the message - see the protocoll-data
where to find this protocoll-data
Presumably, your files do not have the kind of data expected. From what we can see here (i.e. just the file names), there isn’t much that we can say.
hello dear all
if i try to import the key with KGpg - the KDE client - wiht the option - take the text from editor … then i get back the warning
Text in editor is no key but a crypted text - should i treat the text and try to decypher it?
well that said - my friend sent me a crypted file for a public key - well this seems not to be necessary -
what to do now
guessing there is a crypted file- i tried to decypher the file
[martin@martin-pc Downloads]$ gpg -d encrypted1.asc
gpg: verschlüsselt mit ELG Schlüssel, ID 347E856F4F5D2DC6
gpg: verschlüsselt mit ELG Schlüssel, ID 6C37EEFDAB40A2B8
gpg: verschlüsselt mit RSA Schlüssel, ID CEF757D0F5BE77E5
gpg: Entschlüsselung fehlgeschlagen: Kein geheimer Schlüssel
[martin@martin-pc Downloads]$ ^Mgpg -d encrypted2.asc
bash: $’\rgpg’: Kommando nicht gefunden.
[martin@martin-pc Downloads]$
[martin@martin-pc Downloads]$ gpg -d encrypted2.asc
gpg: verschlüsselt mit ELG Schlüssel, ID 347E856F4F5D2DC6
gpg: verschlüsselt mit ELG Schlüssel, ID 6C37EEFDAB40A2B8
gpg: verschlüsselt mit RSA Schlüssel, ID CEF757D0F5BE77E5
gpg: Entschlüsselung fehlgeschlagen: Kein geheimer Schlüssel
[martin@martin-pc Downloads]$
but wait - this failed…
Well i think that i have to ask the friend how he crypted the key
Yes, that would be a good way to start.
Is it possible that your friend sent his private key? He should not do that.