This tutorial by user Amos Mibey will show you how to set up Apache with SSL certificate on your FreeBSD operating system. Apache is an Open Source HTTP Server, serving about a third of all active websites across the world wide web. For the full set of instructions, see the link below.
The use of Self-signed TLS/SSL certificates is strictly not recommended for use in a public site where private information is involved. It can only be used locally for Apache testing purposes, on an intranet or on personal sites that doesn’t involve the transfer of critical data.
Install Apache with Self-Signed Certificate on FreeBDS 12
Install Apache on FreeBSD 12
To begin with, update your system packages.