LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-01-2020, 09:54 AM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
Made CSR request but cannot find the public.key that is made


Made CSR request but cannot find the server/public.key that is made.

Anyone know where I can find it?
 
Old 12-01-2020, 10:24 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,484

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Nobody here can tell you because you've given no useful information.

What steps did you follow? What commands did you use?
 
2 members found this post helpful.
Old 12-01-2020, 10:26 AM   #3
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by TenTenths View Post
Nobody here can tell you because you've given no useful information.

What steps did you follow? What commands did you use?
If you had Fedora you may understand how to make a csr certificate and where it goes.
 
Old 12-01-2020, 01:28 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
A CSR has zero to do with Fedora. CSR requests can be made on any Linux distro that has OpenSSL installed.
 
1 members found this post helpful.
Old 12-01-2020, 01:34 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,750

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
Quote:
Originally Posted by bscho View Post
If you had Fedora you may understand how to make a csr certificate and where it goes.
We can't help you if you don't tell us what you did. What we "understand" is not relevant.
 
2 members found this post helpful.
Old 12-01-2020, 04:07 PM   #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
The command
Code:
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
generates a private key. You can derive the public key from it:
Code:
openssl rsa -in server.key -pubout > server.pub
EDIT: After further reading, it seems that server.key contains both the private and the public key. If so, the second command just pulls the public key out of server.key. However, it should be possible to mathematically derive the public key from a private key (obviously not vice versa).
Also, as the other answers state, this has nothing to do with Fedora or even Linux. openssl is an open-source project whose code is used on many platforms including Windows.

Last edited by berndbausch; 12-01-2020 at 05:41 PM. Reason: Added info about public key being inside the server.key file
 
Old 12-01-2020, 07:57 PM   #7
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by berndbausch View Post
The command
Code:
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
generates a private key. You can derive the public key from it:
Code:
openssl rsa -in server.key -pubout > server.pub
EDIT: After further reading, it seems that server.key contains both the private and the public key. If so, the second command just pulls the public key out of server.key. However, it should be possible to mathematically derive the public key from a private key (obviously not vice versa).
Also, as the other answers state, this has nothing to do with Fedora or even Linux. openssl is an open-source project whose code is used on many platforms including Windows.
Thanks I found it was in the same folder as the csr.
 
  


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
LXer: How to Generate a Certificate Signing Request (CSR) on Ubuntu LXer Syndicated Linux News 0 05-14-2019 12:32 AM
Is a certificate signing request (csr) for websites only? Sid95 Linux - Newbie 7 03-31-2019 11:18 AM
LXer: How to Generate CSR (Certificate Signing Request) in Linux LXer Syndicated Linux News 0 12-31-2017 09:36 PM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
SSL. Have crt and csr, but no key. deathsfriend99 Linux - Server 2 08-20-2010 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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