LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Is a certificate signing request (csr) for websites only? (https://www.linuxquestions.org/questions/linux-newbie-8/is-a-certificate-signing-request-csr-for-websites-only-4175645834/)

Sid95 01-09-2019 05:25 AM

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

rtmistler 01-09-2019 06:58 AM

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.

Sid95 01-09-2019 07:16 AM

Quote:

Originally Posted by rtmistler (Post 5946408)
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. ;)

slac-in-the-box 01-10-2019 01:15 PM

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!

Sid95 01-14-2019 07:38 AM

Quote:

Originally Posted by slac-in-the-box (Post 5947208)
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. ;)

berndbausch 01-14-2019 08:52 AM

Quote:

Originally Posted by Sid95 (Post 5946388)
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.

ondoho 01-15-2019 12:45 AM

Quote:

Originally Posted by Sid95 (Post 5948912)
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.

slac-in-the-box 03-31-2019 11:18 AM

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


All times are GMT -5. The time now is 08:43 AM.