Maze Posted November 10, 2018 Share Posted November 10, 2018 (edited) Hello dear experts how to import a key of a friend ... into KGpg is this possible with gpg -a --import i guess that this is much more apropiate than this code gpg -a -i btw - or are there options to import directly without any comand line can i import it directly with kgpg !? Edited November 10, 2018 by Maze Quote Link to comment Share on other sites More sharing options...
Maze Posted November 10, 2018 Author Share Posted November 10, 2018 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]$ [/CODE] hmm - i am wondering why it failed... Quote Link to comment Share on other sites More sharing options...
Maze Posted November 10, 2018 Author Share Posted November 10, 2018 if i try to import with the kgpg - then the protocoll says the encryption of the file failed Quote Link to comment Share on other sites More sharing options...
Maze Posted November 10, 2018 Author Share Posted November 10, 2018 b 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 Quote Link to comment Share on other sites More sharing options...
Maze Posted November 10, 2018 Author Share Posted November 10, 2018 [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]$ well the trial to decypher seems to fail - and i guess the best is to ask my friend how he encrypted the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.