Jump to content
Sign in to follow this  
Maze

how to import a public key in 'KGpg ?

Recommended Posts

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 by Maze

Share this post


Link to post
Share on other sites

 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...

Share this post


Link to post
Share on other sites

if i try to import with the kgpg - then the protocoll says

 

the encryption of the file  failed

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
[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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.