Getting paid internationally?
Choose Payoneer.

Enable Apache HTTPS in FreeBSD

The following procedure activates HTTPS for the Apache web server in FreeBSD.

This secure protocol uses TLS/SSL certificates to encrypt the data transferred between the remote user and the web server. Sensitive information is protected from being captured by malicious actors using sniffing tools along the network route.



1.1. Make a self-signed SSL certificate. [ Details ]


2.1. Log in to "root". Regular users must be part of the "wheel" group in order to do this.

user@host: $ su -

2.2. Open the Apache main configuration file.

root@host: # ee /usr/local/etc/apache24/httpd.conf

2.3. Find and uncomment the following Apache directives.

# ...

LoadModule socache_shmcb_module libexec/apache24/
# Needed by the "SSLSessionCache" directive in httpd-ssl.conf

# ...

LoadModule ssl_module libexec/apache24/
# Needed by the "SSLCipherSuite" directive in httpd-ssl.conf

# ...

Include etc/apache24/extra/httpd-ssl.conf
# Secure Sockets Layer configuration file of the HTTP daemon.

# ...

2.4. Restart the server.

root@host: # service apache24 restart


In Debian-based Linux distribution, the process of enabling Apache HTTPS is slightly shorter because a "snake oil" (self-signed) SSL certificate is automatically generated during package installation.



Getting paid internationally?
Choose Payoneer.

Get started with DigitalOcean SSD Virtual Servers  Email Newsletters & Email Marketing by

Popular posts from this blog

Enabling HTTPS in Home Assistant

Running Home Assistant on FreeBSD Servers

Configuring the FreeBSD Firewall with IPFW