How To Install mod_md.x86_64 on Amazon Linux 2

In this tutorial we learn how to install mod_md.x86_64 in Amazon Linux 2. mod_md.x86_64 is Certificate provisioning using ACME for the Apache HTTP Server

Introduction

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

What is mod_md.x86_64

This module manages common properties of domains for one or more virtual hosts. Specifically it can use the ACME protocol (RFC Draft) to automate certificate provisioning. These will be configured for managed domains and their virtual hosts automatically. This includes renewal of certificates before they expire.

We can use yum to install mod_md.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_md.x86_64.

Install mod_md.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_md.x86_64 using yum by running the following command:

sudo yum -y install mod_md.x86_64

How To Uninstall mod_md.x86_64 on Amazon Linux 2

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

sudo yum remove mod_md.x86_64

mod_md.x86_64 Package Contents on Amazon Linux 2

/etc/httpd/conf.modules.d/01-md.conf
/usr/lib64/httpd/modules/mod_md.so

References

Summary

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