LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2019, 05:25 AM   #1
Sid95
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Rep: Reputation: Disabled
Is a certificate signing request (csr) for websites only?


Greetings all,

I saw this code in commandlinefu.com website. I heard of this but never knew the application for using one except for a website.

Code:
Generate a self-signed certificate

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
If I create one, are there other ways to use them besides for websites?

Is it the same as using gpg to sign files, emails and etc?

Thx

Last edited by Sid95; 01-09-2019 at 05:36 AM.
 
Old 01-09-2019, 06:58 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,877
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I supposed to be more correct, it would be client-server applications. The server needs to verify that the client signing in is who they are, thus this is part of authentication. We use a private git which, while accessible from anywhere, also does require that we have a signature file even when we are in the office.

Sure you can generate all the certificates you want, but if no server knows anything about them, then they serve no purpose.
 
Old 01-09-2019, 07:16 AM   #3
Sid95
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
I supposed to be more correct, it would be client-server applications. The server needs to verify that the client signing in is who they are, thus this is part of authentication. We use a private git which, while accessible from anywhere, also does require that we have a signature file even when we are in the office.

Sure you can generate all the certificates you want, but if no server knows anything about them, then they serve no purpose.
ok, thanks rtmistler for clearing it up for me.
 
Old 01-10-2019, 01:15 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 777
Blog Entries: 1

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
I use key pairs to login to remote machines without passwords--password login is considered pretty insecure these days, as it's hard to remember one complicated enough to thwart dictionary attacks--so you can create a key pair, and store them in your users .ssh folder on the local and remote systems, and then login with ssh -i ~/.ssh usersshkey remote.host and it never asks for a password! You can then turn off password authentication in /etc/ssh/sshd_config and your host is safe from dictionary attacks!
 
Old 01-14-2019, 07:38 AM   #5
Sid95
LQ Newbie
 
Registered: Jan 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slac-in-the-box View Post
I use key pairs to login to remote machines without passwords--password login is considered pretty insecure these days, as it's hard to remember one complicated enough to thwart dictionary attacks--so you can create a key pair, and store them in your users .ssh folder on the local and remote systems, and then login with ssh -i ~/.ssh usersshkey remote.host and it never asks for a password! You can then turn off password authentication in /etc/ssh/sshd_config and your host is safe from dictionary attacks!
Yes, I know this and I currently do this now.

I just though that csr was something similar to public/private keys authenication.
 
Old 01-14-2019, 08:52 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Sid95 View Post
Greetings all,

I saw this code in commandlinefu.com website. I heard of this but never knew the application for using one except for a website.

Code:
Generate a self-signed certificate

openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
If I create one, are there other ways to use them besides for websites?

Is it the same as using gpg to sign files, emails and etc?
There are many applications that use HTTP as their protocol. Anything that implements a RESTful API or something similar. They are not web sites but benefit from making their communication more secure using HTTPS.

Examples: OpenStack, Ceph, Alfresco, Shopify.
 
Old 01-15-2019, 12:45 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Sid95 View Post
I just though that csr was something similar to public/private keys authenication.
this is not wrong.
http://www.cacert.org/ is using certificates for user authentication.
i believe the process is explained somewhere; good luck finding it, that site's a mess. maybe easiest if you send them a message and ask.
 
Old 03-31-2019, 11:18 AM   #8
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 777
Blog Entries: 1

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Certificate Signing Requests is part of public/private keys authentication: the part that asks for a certificate from a certificate authority--if you use a CA on the list of trusted CAs, then mail clients, web clients, vpn clients, and whatever other clients in a server/client architecture, won't give out any warnings about distrusted or unknown certificates... you can sign your own though, and each client can add your CA's certificate (you become your own CA when you sign your own) to their list of trusted certificates, and the warnings go away after that. In addition to the cacert documentation... the easyrsa tools that openvpn uses have straight forward documentation. Letsencrypt.org is another free CA, but the ACME and JOSE protocol that they automate their signing process with stinks.

I personally wish that gnuzilla or fsf, or entity like that could make a people's CA that could issue icon of a little tye-died figure, instead of green lock, and that browsers like ICECAT could display these little hippy icons on sites that were running and secured completely with free tools only -- in the gnu sense of a free tool...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: The creation of User, Certificate and Signing of CSR for Lemur Certificate Manager LXer Syndicated Linux News 0 11-28-2018 03:03 PM
LXer: How to Generate CSR (Certificate Signing Request) in Linux LXer Syndicated Linux News 0 12-31-2017 09:36 PM
Signing CSR which is in PKCS10 using Openssl tool in CentOS-7 sario120 Linux - Security 2 08-29-2017 07:17 AM
Trying to create a Certificate Signing Request with my Certification Authority tsbah Linux - Security 7 03-19-2017 09:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 PM.

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