How To Install mod_ssl.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mod_ssl.x86_64 in Amazon Linux 2. mod_ssl.x86_64 is SSL/TLS module for the Apache HTTP Server

Introduction

In this tutorial we learn how to install mod_ssl.x86_64 on Amazon Linux 2.

What is mod_ssl.x86_64

The mod_ssl module provides strong cryptography for the Apache Web server via the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols.

We can use yum to install mod_ssl.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mod_ssl.x86_64.

Install mod_ssl.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mod_ssl.x86_64 using yum by running the following command:

sudo yum -y install mod_ssl.x86_64

How To Uninstall mod_ssl.x86_64 on Amazon Linux 2

To uninstall only the mod_ssl.x86_64 package we can use the following command:

sudo yum remove mod_ssl.x86_64

mod_ssl.x86_64 Package Contents on Amazon Linux 2

/etc/httpd/conf.d/ssl.conf
/etc/httpd/conf.modules.d/00-ssl.conf
/usr/lib/systemd/system/httpd-init.service
/usr/lib/systemd/system/httpd.socket.d/10-listen443.conf
/usr/lib64/httpd/modules/mod_ssl.so
/usr/libexec/httpd-ssl-gencerts
/usr/libexec/httpd-ssl-pass-dialog
/usr/share/man/man8/httpd-init.service.8.gz
/var/cache/httpd/ssl

References

Summary

In this tutorial we learn how to install mod_ssl.x86_64 on Amazon Linux 2 using yum.