Create Self Signed Certs
From: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-22-04





How To Create a Self-Signed SSL Certificate
for Apache in Ubuntu 22.04
Published on April 25, 2022

By Erin Glass and Jamon Camisso
How To Create a Self-Signed SSL Certificate for Apache in Ubuntu 22.04

Introduction

TLS, or “transport layer security” — and its predecessor SSL — are
protocols used to wrap normal traffic in a protected, encrypted wrapper.
Using this technology, servers can safely send information to their clients
without their messages being intercepted or read by an outside party.

In this guide, you will create and use a self-signed TLS certificate with
the Apache web server on Ubuntu 22.04. You’ll use the openssl command line
tool to create the certificate, and then you will configure Apache to use
it.

Note: 
A self-signed certificate will encrypt communication between your server and
any clients. However, because it is not signed by any of the trusted
certificate authorities included with web browsers and operating systems,
users cannot use the certificate to validate the identity of your server
automatically. As a result, your users will see a security error when
visiting your site.

Because of this limitation, self-signed certificates are not appropriate for
a production environment serving the public. They are typically used for
testing, or for securing non-critical services used by a single user or a
small group of users that can establish trust in the certificate’s
validity through alternate communication channels.

For a more production-ready certificate solution, check out Let’s Encrypt,
a free certificate authority. You can learn how to download and configure a
Let’s Encrypt certificate in our How To Secure Apache with Let’s Encrypt
on Ubuntu 22.04 tutorial.


Prerequisites

Before starting this tutorial, you’ll need the following: