LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-20-2022, 05:15 PM   #1
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,404
Blog Entries: 3

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Roundcube and encryption


Hi all
My email provider offers pgp support on a roundcube server. Therefore you can upload your public and/or private key.

Am I right to think it isn't secure at all to upload a private key, even if it's the only way to decrypt received (and encrypted messages) ?
 
Old 06-20-2022, 06:24 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Quote:
Originally Posted by Tonus View Post
Am I right to think it isn't secure at all to upload a private key, even if it's the only way to decrypt received (and encrypted messages) ?
Yes.
 
1 members found this post helpful.
Old 06-21-2022, 12:34 AM   #3
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by Tonus View Post
Am I right to think it isn't secure at all to upload a private key, even if it's the only way to decrypt received (and encrypted messages) ?
Ser Olmy has correctly answered the question.

But I cannot but tremble at the very thought of people seeing uploading a private key as an option. Where you write “the only way to decrypt received and encrypted messages” – and as there may be people reading this thread – I have to add that a service which necessitates that a private key be “uploaded” has disqualified itself as being a “a service” in the first place.

This should not exist and It should not be necessary to ask the question.

Last edited by Michael Uplawski; 06-21-2022 at 12:44 AM. Reason: private
 
1 members found this post helpful.
Old 06-21-2022, 09:19 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
I believe that the correct option would be to upload your public key only. This will allow anyone to send an encrypted message to you which only you could then decrypt.

You would need to upload a private key only if you intended to use their "web-mail screen" to review your incoming mail. Ordinarily, I do not do this – I use a dedicated email client which can gather the mail from every e-mail account that I have and present it all to me at once. This email client has a PGP plug-in to handle encrypted traffic, referencing a private key that is only stored on my machine.

I am also rather surprised that this service does not know about "PGP key servers" and does not use them. I think of this as a deficiency.

Last edited by sundialsvcs; 06-21-2022 at 09:21 AM.
 
Old 06-21-2022, 02:00 PM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,620
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by sundialsvcs View Post
I am also rather surprised that this service does not know about "PGP key servers" and does not use them. I think of this as a deficiency.
The status of the key server network (and all kinds of key server networks) would interest me. In view of recent exchanges I must assume, that we lack reliable services. Unfortunately I do not understand much about the new exigences, nor the deficiencies of the old key servers. New ones appear to not meet the requirements. That is all I know... the rest is technical gibberish.

GnuPG has changed so much in recent years that what I use nowadays is a mostly unknown software to me.

Last edited by Michael Uplawski; 06-21-2022 at 02:01 PM.
 
Old 06-21-2022, 03:02 PM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,404

Original Poster
Blog Entries: 3

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
I was quite surprised to see the offer of uploading a private key. This make sens when you rely on the webmail to decrypt. What would worry me is that I have not seen anything that may be an additional layer of protecting a private key (no export, some encryption of the key itself or whatever).
While the server is vulnerable (aren't we all ?), it looks quite stupid to put a private key at such risk.
 
Old 06-21-2022, 07:16 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
If you intend to use a web page to access your private, encrypted mail, then it is of course necessary that you must upload your private key to the service. (As well, perhaps, as the public key.) This would be the only reasonable – but, necessary – reason for you to upload a private key.

Yes, it is certainly possible for a private key to be encrypted with a passphrase, and in this scenario you would want to do that. I am not familiar enough with this mail-service to know whether they support this. (Of course they should ...)

"Key servers" are an accepted source of various users' public keys. If you want to send a private message to someone, you interrogate the key-server system to find the necessary public key and add it to your keychain. PGP®/GPG-aware mail client software will often simply do this for you, behind the scenes.

Last edited by sundialsvcs; 06-21-2022 at 07:23 PM.
 
Old 06-21-2022, 07:28 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
Quote:
Originally Posted by sundialsvcs View Post
Yes, it is certainly possible for a private key to be encrypted with a passphrase, and in this scenario you would want to do that. I am not familiar enough with this mail-service to know whether they support this. (Of course they should ...)
A properly designed crypto-aware email service should not allow you to upload a private key that isn't passphrase-protected. It should prompt you each time for the passphrase, and "on their honor" never keep it. I don't know if the designers of this service did that.

A private key (or even a public one ...) should never be anywhere "public" ... e.g., on a laptop in any airport anywhere, where it might be stolen ... unless it is passphrase-encrypted. (This is especially important in the case of VPN ... which should n-e-v-e-r(!) rely on "mere passwords = PSKs.")

Last edited by sundialsvcs; 06-21-2022 at 07:32 PM.
 
  


Reply



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
Mail Server Using Postfix, Roundcube, Vimbadmin, and MySQL, reporting scripts jamil.isayyed Linux - Server 7 07-29-2012 07:22 PM
LXer: An Easy Step-by-Step to Install and Running Roundcube Webmail on Ubuntu/Linux Mint LXer Syndicated Linux News 0 02-10-2012 09:20 PM
Auto deleting spam assasins spam box via cronjob and Roundcube Junk Folder osmy Linux - Newbie 8 01-23-2012 04:22 PM
LXer: Easy RoundCube (Over SSL) And Webmin With fail2ban For ISPConfig 3 On Debian Squeeze LXer Syndicated Linux News 0 03-04-2011 09:00 AM
Linux password encryption and data encryption Tux-Slack Programming 4 06-20-2007 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:15 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