• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install mod_ssl and SSL certificate on Oracle Linux

  • 00:38 cat /etc/os-release
  • 00:59 yum install httpd*
  • 01:32 yum install mod_ssl
  • 01:59 systemctl start httpd
  • 02:11 systemctl enable httpd
  • 02:23 systemctl status httpd
  • 02:54 apachectl -M |grep ssl
  • 03:13 openssl req -newkey rsa:2048 -nodes -keyout /keys/linuxhelp.key -x509 -days 365 -out /keys/linuxhelp.crt
  • 03:40 cd /keys
  • 03:43 ll
  • 03:58 vim /etc/httpd/conf.d/ssl.conf
  • 05:22 systemctl restart httpd
  • 05:37 vim /etc/httpd/conf.d/redirect_http.conf
  • 06:22 systemctl restart httpd
6798

To Install mod_ssl and ssl certificate on Oracle Linux

Introduction :

A mod SSL library implements the SSL and TLS protocols to provide secure network communication. It may also support SSL v3 and TLS v1.x for Apache HTTP Server. This function implements cryptographic functions and provides utility functions.

Installation steps :

Step 1 : check the version of the OS

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Oracle Linux Server"
VERSION="8.4"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.4"
ANSI_COLOR="0;31"

Step 2 : Install the Apache

 [root@linuxhelp ~]# yum install httpd*
Last metadata expiration check: 0:02:46 ago on Saturday 11 December 2021 02:05:10 AM IST.
Dependencies resolved.
============================================================================================================================================
 Package                       Architecture      Version                                                 Repository                    Size
============================================================================================================================================
Installing:
 httpd                         x86_64            2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9             ol8_appstream                1.4 M
 httpd-devel                   x86_64            2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9             ol8_appstream                222 k
 httpd-filesystem              noarch            2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9             ol8_appstream                 40 k
 httpd-manual                  noarch            2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9             ol8_appstream                2.4 M
 httpd-tools                   x86_64            2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9             ol8_appstream                107 k
Installing dependencies:
 apr                           x86_64            1.6.3-12.el8                                            ol8_appstream                129 k
 apr-devel                     x86_64            1.6.3-12.el8                                            ol8_appstream                246 k
 apr-util                      x86_64            1.6.1-6.el8                                             ol8_appstream                105 k
 apr-util-devel                x86_64            1.6.1-6.el8                                             ol8_appstream                 86 k
 cyrus-sasl-devel              x86_64            2.1.27-5.el8                                            ol8_baseos_latest            128 k
 expat-devel                   x86_64            2.2.5-4.el8                                             ol8_baseos_latest             55 k
  httpd-tools-2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9.x86_64         libdb-devel-5.3.28-40.el8.x86_64                                  
  mod_http2-1.15.7-3.module+el8.4.0+20024+b87b2deb.x86_64                openldap-devel-2.4.46-16.el8.x86_64                               
  oracle-logos-httpd-84.5-1.0.1.el8.noarch                              

Complete!

Step 3 : Installing mod_ssl

[root@linuxhelp ~]# yum install mod_ssl
Last metadata expiration check: 0:05:15 ago on Saturday 11 December 2021 02:05:10 AM IST.
Dependencies resolved.
============================================================================================================================================
 Package               Architecture         Version                                                       Repository                   Size
============================================================================================================================================
Installing:
 mod_ssl               x86_64               1:2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9                 ol8_appstream               136 k

Transaction Summary
============================================================================================================================================
Install  1 Package

Total download size: 136 k
Installed size: 266 k
Is this ok [y/N]: y
Downloading Packages:
mod_ssl-2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9.x86_64.rpm                                              790 kB/s | 136 kB     00:00    
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                       750 kB/s | 136 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test

Installed:
  mod_ssl-1:2.4.37-43.0.1.module+el8.5.0+20426+404a9eb9.x86_64                                                                              

Complete!

Step 4 : Restart httpd service

 [root@linuxhelp ~]# systemctl start httpd

Step 5 : Enable httpd service

 [root@linuxhelp ~]# systemctl enable httpd
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.

Step 6 : check the status of httpd

[root@linuxhelp ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-12-11 02:11:57 IST; 20s ago
     Docs: man:httpd.service(8)
 Main PID: 34724 (httpd)
   Status: "Running, listening on: port 443, port 80"
    Tasks: 213 (limit: 10509)
   Memory: 25.4M
   CGroup: /system.slice/httpd.service
           ├─34724 /usr/sbin/httpd -DFOREGROUND
           ├─34731 /usr/sbin/httpd -DFOREGROUND
           ├─34732 /usr/sbin/httpd –DFOREGROUND

(check the ssl status)

snap 1

Step 7 : check the ssl status

 [root@linuxhelp ~]# apachectl -M |grep ssl
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::20c:29ff:feb9:ab7e. Set the 'ServerName' directive globally to suppress this message
 ssl_module (shared)

step 8 : generate the ssl certificates

[root@linuxhelp ~]# openssl req -newkey rsa:2048 -nodes -keyout /keys/linuxhelp.key -x509 -days 365 -out /keys/linuxhelp.crt
Generating a RSA private key
.+++++
....................................+++++
writing new private key to '/keys/linuxhelp.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:in
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

Step 9 : To change the directory

[root@linuxhelp ~]# cd /keys/

Step 10 : To list the files

[root@linuxhelp keys]# ll
total 8
-rw-r--r-- 1 root root 1237 Dec 11 07:02 linuxhelp.crt
-rw------- 1 root root 1704 Dec 11 07:01 linuxhelp.key

Step 11 : Edit the ssl certificate path

[root@linuxhelp keys]# vim /etc/httpd/conf.d/ssl.conf 
SSLCertificateFile /keys/linuxhelp.crt
SSLCertificateKeyFile /keys/linuxhelp.key

Step 12 : create a Redirect file append following lines

[root@linuxhelp ~]# vim /etc/httpd/conf.d/redirect_http.conf
<VirtualHost _default_:80>
        Servername linuxhelp
        Redirect permanent / https://linuxhelp
</VirtualHost>

Step 13 : Restart the httpd service

[root@linuxhelp ~]# systemctl restart httpd

(check the ssl status)

snap 2

With this Installation of mod_ssl and SSL certificate on Oracle Linux comes to an end.

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How do SSL certificates work?

A

It uses encryption algorithms to scramble data in transit, which prevents hackers from reading it as it is sent over the connection.

Q

How many types of SSL certificates are available?

A

There are six main types of certificates available.

Q

What is EV SSL?

A

EV SSL stands for Extended Validation certificates.

Q

What is MDC in SSL?

A

Multi-Domain SSL Certificates allow you to secure as many as 1000 domains with one certificate.

Q

Is it possible to use one SSL certificate for multiple domains on the same server?

A

Yes, it is possible to use one SSL certificate for multiple domains on the same server.

Related Tutorials in How to Install mod_ssl and SSL certificate on Oracle Linux

Related Tutorials in How to Install mod_ssl and SSL certificate on Oracle Linux

Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How To Install SSL Certificate in RHEL/CentOS
How To Install SSL Certificate in RHEL/CentOS
May 23, 2016
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
How to install Xrdp Server (Remote Desktop) on Oracle Linux 8.5
Oct 17, 2022
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to create SSL certificate in OpenSUSE
How to create SSL certificate in OpenSUSE
Aug 12, 2017
How to Install and Configure Mega in Linux
How to Install and Configure Mega in Linux
Jul 19, 2016
How to use Aureport command on Linux
How to use Aureport command on Linux
Nov 28, 2017
How to install Development tools on Linux
How to install Development tools on Linux
Jun 12, 2018

Related Forums in How to Install mod_ssl and SSL certificate on Oracle Linux

Related Forums in How to Install mod_ssl and SSL certificate on Oracle Linux

Linux
jayce class=
shasum command not found
May 5, 2017
Linux
stephan class=
How to list all samba users
Jan 12, 2018
pv command
muhammad class=
pvcreate command not found error
May 9, 2017
Linux
henry class=
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
Apr 25, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Linux
baseer class=
single command to apply setfacl for multiple user at a time
Jan 23, 2018
Linux
beulah class=
What does mean by 0 0 value in fstab file
Jan 2, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018

Related News in How to Install mod_ssl and SSL certificate on Oracle Linux

Related News in How to Install mod_ssl and SSL certificate on Oracle Linux

Anbox, the Android-to-Linux tool the developers have been waiting for
Anbox, the Android-to-Linux tool the developers have been waiting for
Apr 17, 2017
Linus Torvalds stops signing Linux kernel RC tarballs
Linus Torvalds stops signing Linux kernel RC tarballs
May 17, 2017
Capsule8 Launches Linux-Based Container Security Platform
Capsule8 Launches Linux-Based Container Security Platform
Feb 14, 2017
Symantec updates Management console product
Symantec updates Management console product
Nov 22, 2017
Latest Linux driver release feature seven AMD Vega
Latest Linux driver release feature seven AMD Vega
Mar 23, 2017
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Microsoft makes its Azure App service now available on Linux Systems
Microsoft makes its Azure App service now available on Linux Systems
Sep 7, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.