Linux serverNETWORK ADMINISTRATIONSredhat

#sslcertificate | Create Self Signed SSL Certificate on Redhat Server

Please subscribe my channel:
https://www.youtube.com/channel/UCry2uNX0352LFVmpEORHPiA
How to Create self signed ssl certificate?

First you need to install httpd & mod_ssl package if you using Rehat OS, for other install open ssl package
Command: yum install httpd mod_ssl -y

systemctl start httpd
systemctl enable httpd
then you need to open firewall for http & https

1. Generate a private key with 2048 bit encryption as follows.
openssl genrsa -out server01.key 2048

2. Then generate the certificate signing request (CSR) by using the following command
openssl req -new -key server01.key -out server01.csr

3. Generate a self-signed certificate of X509 type which remains active for 365 days.

openssl x509 -req -days 365 -in server01.csr -signkey server01.key
–out server01.crt

4. After generating the certificates, copy the files to the necessary directory.

cp server01.crt /etc/pki/tls/certs
cp server01.key /etc/pki/tls/private/
cp server01.csr /etc/pki/tls/private

source

by Linux with Anirban

redhat openstack

One thought on “#sslcertificate | Create Self Signed SSL Certificate on Redhat Server

Comments are closed.