LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-30-2019, 02:21 PM   #1
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Rep: Reputation: Disabled
Question Issuing my GNUPG keys, choosing between RSA/DSA/ECC/Elgamal,


Hi all,
As always, thks for your support.
I've lookied for PGP and GPG in the forums but didn't find anything, so I post a new thread.

Since I can't have FIPS working, and before starting anything else, I want to create a pgp key to secure future executions.
i.e: Brave is asking for one to start; Akonadi Kontact is asking for one, I will need one to encrypt some folders; etc ...

I've found very good answers here [link]https://security.stackexchange.com/questions/72581/new-pgp-key-rsa-rsa-or-dsa-elgamal/72586[/link]

It seems that within GNU Privacy Guard "Pretty Good Privacy" RSA, DSA, Elgamel in 4048 bits are pretty much the same level of security.
I see that ECC benefits in comparison with non-ECC cryptography [...] is the same level of security provided by keys of smaller size.

So I will probably go for an ECC keys.

And I've seen somewhere else that it is not a good idea (practical, maintenance, confusion) to have one key per ID (per email address) so I will have three groups keys, 1.professionnal (6 address) 2.personnal (2 address) 3.public (2 address)

BUT ... my question is about Certification/Authentification/Encryption/Signature
=> Is it better to have ONE key for all, or one key for encryption AND one key for signature/Authentication ?
And all the different compositions that might come out of it, like one key for local encryption (folders, documents, backups); 1 key for messages encryption, 1 key for signature (PDF signature, email signature, ...)
 
Old 08-02-2019, 02:49 PM   #2
mushishi
LQ Newbie
 
Registered: Jun 2019
Distribution: openSUSE, Rocky, Fedora, Mint, Kali
Posts: 6

Rep: Reputation: 0
Term confusion

Hi,

It seems you are confusing terms. I'd recommend either a peek at the "Handbook of Applied Cryptography" or, if too detailed for your needs, at least a look at the openssl wiki. Specifically, the page on elliptic curves should give you some pointers. The NIST overview is also nice - neither are a substitute for a lecture in cryptography or the reference book. You should also dig up some more info on PGP.
tl;dr You are comparing different algorithms/ciphers; RSA/DSA are based on Feistel networks, ECC - the name says it. Hence, it makes no sense to compare the size of your key for all three. Also, ElGamal is part of DSA. Finally, if I remember correct, PGP/GPG is an asymmetric cryptographic protocol, hence you need a public/private key combo.
 
Old 08-29-2019, 09:14 AM   #3
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by mushishi View Post
Hi,

It seems you are confusing terms.
Thks a lot for all that !
While I was away, I got to read some and clearly see your point, indeed no comparison in size as they have a totally different outcome even though they bear the same security level.

I will stick with the ECC, and will have a pair as required
 
Old 08-29-2019, 09:27 AM   #4
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Question Kgpg could not create key pair: not supported

I see that Kgpg isn't up to date as for mos of the curves, it only propose Curve25519, leaving behind Curve383187; Curve41417; M-221; M-382; M-511 and E-222 E-383 E-521
Of course I have no idea of what I'm talking about, it's just a matter of having choice.

Anyway, as the title says, I can't even create an ECC key pair, not with Kleopatra, not with Kgpg, neither in standard mode nor expert mode (console)

Kgpg, in "expert" mode, I go through the process of choosing option (9) ECC; then (1) Curve25519; then 796 (days); then real name and email address; no comment; then password and ... the windows closes instantly.

I've tried to start Kgpg as root and get that:
Code:
eric@MaxiCrevette:~> su
Password: 
MaxiCrevette:/home/eric # kgpg
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
"Session bus not found\nTo circumvent this problem try the following command (with Linux and bash)\nexport $(dbus-launch)"
MaxiCrevette:/home/eric # exit
eric@MaxiCrevette:~> kgpg
gpg: out of core handler ignored in FIPS mode
gpg: out of core handler ignored in FIPS mode
gpg: out of core handler ignored in FIPS mode
gpg: out of core handler ignored in FIPS mode
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3886, resource id: 36016822, major code: 40 (TranslateCoords), minor code: 0

Last edited by eric.vanh; 08-29-2019 at 09:37 AM. Reason: added a line of code
 
Old 08-29-2019, 09:35 AM   #5
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Unhappy Kgpg won't even create an RSA/RSA key

I've tried to create a simple RSA/RSA key pair and get that error message.
I don't understand, it worked a month ago ... all I did was to leave for a month with the computer off

Click image for larger version

Name:	Screenshot_20190829_103159.png
Views:	44
Size:	88.5 KB
ID:	31234
 
Old 09-03-2019, 01:26 PM   #6
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
I've opened a superuser consol and started Kgpg ... I get this:
Code:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
gpg: out of core handler ignored in FIPS mode
gpg: out of core handler ignored in FIPS mode
gpg: out of core handler ignored in FIPS mode
QSystemTrayIcon::setVisible: No Icon set
gpg: out of core handler ignored in FIPS mode
What happen ? what changed ?
 
  


Reply

Tags
cryptography, gpg, pgp, security



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RSA SecurID: RSA Web Agent, integration of RSA auth page Linux_Kidd General 1 08-28-2013 05:59 PM
SSH crashes on login while any RSA/DSA keys exist jjinno Linux - Networking 2 04-09-2010 07:38 PM
GPG -- RSA or DSA with El Gamal for new keys butters33 Linux - Security 9 07-07-2009 12:26 PM
Which is better RSA or DSA public key? tarballedtux Linux - Security 12 02-03-2009 06:15 AM
Is it possible to re-use RSA/DSA keys in different instances? astrogeek Slackware 2 11-24-2008 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration