₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,534 members, 8,422,456 topics. Date: Monday, 08 June 2026 at 10:55 AM

Toggle theme

Create Self-Signed Certificate - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingCreate Self-Signed Certificate (2022 Views)

1 Reply (Go Down)

Create Self-Signed Certificate by arinolaa(op): 6:15pm On Dec 17, 2016
If anyone has ever created a self-signed certificate using terminal on ubuntu please reply huh I need help. God bless you
Re: Create Self-Signed Certificate by jidez007: 6:26pm On Dec 17, 2016
Use https://letsencrypt.org, you can create unlimited SSL with it for free on your Linux server.
Re: Create Self-Signed Certificate by lordZOUGA(m): 11:14pm On Dec 17, 2016
It is pretty straightforward. Read through this document (https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html)
First create certificate key and signing request with the code below. (You will be asked some questions when you run the second command)
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr

Then create your self-signed certificate with the following command (expires after 365 days):
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

This should put your certificate in a file named "server.crt" in the current directory.
You should read that document linked above for best practices with certificates.
Re: Create Self-Signed Certificate by kudaisi(m): 7:06am On Dec 19, 2016
lordZOUGA:
It is pretty straightforward. Read through this document (https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html)
First create certificate key and signing request with the code below. (You will be asked some questions when you run the second command)
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr

Then create your self-signed certificate with the following command (expires after 365 days):
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

This should put your certificate in a file named "server.crt" in the current directory.
You should read that document linked above for best practices with certificates.
Same command works on windows if you have OpenSSL installed.
Re: Create Self-Signed Certificate by Nobody: 7:10am On Dec 19, 2016
better to just buy
Re: Create Self-Signed Certificate by Jenifa123: 10:43am On Dec 19, 2016
dhtml18:
better to just buy
abi...
or u can use wosign
Re: Create Self-Signed Certificate by Nobody: 6:50pm On Dec 19, 2016
All those self-generated certificates dey get K-leg, best for testing things - how you go dey issue certificate for yourself now? when you no be APC them them
Re: Create Self-Signed Certificate by Jenifa123: 6:57pm On Dec 19, 2016
dhtml18:
All those self-generated certificates dey get K-leg, best for testing things - how you go dey issue certificate for yourself now? when you no be APC them them
sure but i tink wosign gives free certificate...
Re: Create Self-Signed Certificate by Nobody: 7:12pm On Dec 19, 2016
Jenifa123:
sure but i tink wosign gives free certificate...
But there will surely be restrictions - no certificate, not even Kindergarten certificate is free!
Re: Create Self-Signed Certificate by Jenifa123: 7:17pm On Dec 19, 2016
dhtml18:
But there will surely be restrictions - no certificate, not even Kindergarten certificate is free!
i dont tink dey r any
Re: Create Self-Signed Certificate by Nobody: 7:50pm On Dec 19, 2016
Jenifa123:
i dont tink dey r any
Hmn, okay o, lets see how it goes.
Re: Create Self-Signed Certificate by Jenifa123: 8:02pm On Dec 19, 2016
sure
Re: Create Self-Signed Certificate by jidez007: 8:09pm On Dec 19, 2016
I have used this https://letsencrypt.org. it's free but you have to install it on a Linux server, the best part is, it renews by itself every 90 days.
Re: Create Self-Signed Certificate by Jenifa123: 8:10pm On Dec 19, 2016
wosign lasts as much as five yrs before renewal
Re: Create Self-Signed Certificate by Nobody: 8:17pm On Dec 19, 2016
jidez007:
I have used this https://letsencrypt.org. it's free but you have to install it on a Linux server, the best part is, it renews by itself every 90 days.
Wow, that is good. Let us know if you have installed it.
Re: Create Self-Signed Certificate by arinolaa(op): 12:04am On Dec 29, 2016
Hey guys! Thanks for all the responses!!! You guys are amazing.
Re: Create Self-Signed Certificate by arinolaa(op): 12:05am On Dec 29, 2016
lordZOUGA:
It is pretty straightforward. Read through this document (https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html)
First create certificate key and signing request with the code below. (You will be asked some questions when you run the second command)
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr

Then create your self-signed certificate with the following command (expires after 365 days):
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

This should put your certificate in a file named "server.crt" in the current directory.
You should read that document linked above for best practices with certificates.
Oga, the

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt is not working embarassed
Re: Create Self-Signed Certificate by lordZOUGA(m): 12:08am On Dec 29, 2016
arinolaa:
Oga, the

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt is not working embarassed
what error did you get?
Re: Create Self-Signed Certificate by arinolaa(op): 12:13am On Dec 29, 2016
lordZOUGA:
what error did you get?
It says no such file or directory.
Re: Create Self-Signed Certificate by arinolaa(op): 12:15am On Dec 29, 2016
Please check your DM
Re: Create Self-Signed Certificate by lordZOUGA(m): 12:23am On Dec 29, 2016
arinolaa:
It says no such file or directory.
The error indicates that either the "server.csr" or "server.key" file does not exist or you don't have openssl installed
Re: Create Self-Signed Certificate by arinolaa(op): 12:31am On Dec 29, 2016
lordZOUGA:
The error indicates that either the "server.csr" or "server.key" file does not exist or you don't have openssl installed
Okay, can you check your Direct message?
Re: Create Self-Signed Certificate by lordZOUGA(m): 12:35am On Dec 29, 2016
arinolaa:
Okay, can you check your Direct message?
Yes and I have replied that.
Re: Create Self-Signed Certificate by arinolaa(op): 1:07am On Dec 29, 2016
lordZOUGA:
Yes and I have replied that.
Hi I've also replied.
Re: Create Self-Signed Certificate by jidez007: 6:10pm On Jan 30, 2017
dhtml18:
Wow, that is good. Let us know if you have installed it.
OK, here is a tutorial for it
https://serversforhackers.com/video/letsencrypt-for-free-easy-ssl-certificates
1 Reply

Howour Certificate Can Earn You A Job In Jumia|be EMPLOYED| Learn E CommerceSSL Certificate With OpensslOnline Marketing 2016 - A Complete Certificate Course Live On Macaranta234

Which Programming Language Is Rain Gold .Org Built On?How Can I Combine My Studies And ProgrammingHow To Shut Down Or Restart The Computer With A Batch File