CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Follow publication

A step-by-step guide for AWS EC2 provisioning using Terraform: Creating a self-signed SSL certificate for an Azure VM ubuntu Apache2 server — Part 16

Joel Wembo
CodeX
Published in
8 min readJul 11, 2024

--

Creating a self-signed SSL certificate for an Apache2 server on Ubuntu involves several steps. This article provides a step-by-step guide to creating a self-signed SSL certificate for an Apache2 server on Ubuntu. It covers the installation of necessary tools like Apache2 and OpenSSL, the generation of the SSL certificate and private key, and the configuration of Apache to use the certificate for secure HTTPS communication. Additionally, the guide explains how to handle browser security warnings that arise from using a self-signed certificate, including instructions on adding the certificate as a trusted authority in various operating systems.

Table of Contents

Table of Contents
Step 1: Connect to VM
Step 2: Install OpenSSL and Apache2
Step 3: Create a Directory for the SSL Certificate
Step 4: Generate the SSL Certificate and Key
Step 5: Configure Apache to Use the SSL Certificate
Step 6: Enable the SSL Module and Your Site
Step 7: Restart Apache
Conclusion
About me

I’ll use the domain name prod-app-ether.com and IP 20.28.50.124 in the instructions. Here is the updated step-by-step guide:

Step 1: Connect to VM

For this demo, we have used both Github Actions and Terraform to provision our Azure Virtual machine Ubuntu image. Please check Part 1 and Part 2 to learn how to get ready your ec2 instance or Azure virtual machine.

--

--

CodeX
CodeX

Published in CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Joel Wembo
Joel Wembo

Written by Joel Wembo

Cloud Solutions Architect @ prodxcloud. Expert in Django, AWS, Azure, Kubernetes, Serverless Computing & Terraform. https://www.linkedin.com/in/joelotepawembo

No responses yet

Write a response