Jump to content

some little issues with generating gnpg keys on linux terminal


Maze

Recommended Posts

hello dear all  - good day dear linux experts.

i am running openSuse  with kgpg:  and i am very happy with this.
today i want to create some keys...

well i c an - afaik - do this with the kgpg
but if i do so .suddenly the terminal opens.

okay - so far so good;


i have the following options:


to create a key:
gpg --gen-key
generally you can select the defaults.

to export a public key into file public.key:
gpg --export -a "User Name" > public.key
This will create a file called public.key with the ascii representation of the public key for User Name. This is a variation on:

gpg --export
which by itself is basically going to print out a bunch of crap to your screen. I recommend against doing this.
gpg --export -a "User Name"
prints out the public key for User Name to the command line, which is only semi-useful

to export a private key:
gpg --export-secret-key -a "User Name" > private.key
This will create a file called private.key with the ascii representation of the private key for User Name.
It's pretty much like exporting a public key, but you have to override some default protections. There's a note (*) at the bottom explaining why you may want to do this.

to import a public key:
gpg --import public.key
This adds the public key in the file "public.key" to your public key ring.



that said -

what happens if i create a key -

then it exists somewhere on the machine - or not!?


what do i need to do to add it to the kgpg system?

I need to have a tipp  - do you have an idea!?

Link to comment
Share on other sites

What you describe doesn't make much sense.

 

KGpg is a GUI for GPG. It shouldn't open any terminals, because the whole point is to avoid direct interaction with the GPG command line interface. I've just tried it, and the key is indeed generated without any console commands. Note that this takes a pretty long time, especially when dealing with large keys. So don't shut down the program while key generation is still in progress.

 

Also double-check the KGpg settings, especially the paths to the GPG binary, the GPG home location etc.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

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