https://www.vultr.com

The Everywhere Cloud

Deploy an instance.
Accelerate your application.


Self-Signed Certs for Apache in Debian-based Linux


The following procedure shows how to apply self-signed certificates to the Apache web server in Debian-based Linux distributions.

After creating and installing the TLS/SSL certificate/key pair, they can be utilized to secure Debian-based Linux web services with encryption during the development and testing process. It is important to keep in mind that self-signing may be deemed UNTRUSTWORTHY in a production environment.

==========

1. Go to the directory containing the Apache site configuration files.

user@host: $ cd /etc/apache2/sites-available

2. BACK UP the default HTTPS configuration file for the secure site.

user@host: $ sudo cp default-ssl.conf default-ssl-conf.back

3. Open the default HTTPS configuration file.

user@host: $ sudo nano default-ssl.conf

4. Find and modify the following Apache directives.

# BEGIN CODE
# ...

SSLCertificateFile /etc/ssl/certs/myserver.crt
# The self-signed certificate.

SSLCertificateKeyFile /etc/ssl/private/myserver.key
# The key for the self-signed certificate.

# ...
# END CODE

5. Restart the web server.

user@host: $ sudo /etc/init.d/apache2 restart

==========

Comments

Popular posts from this blog

Enabling HTTPS in Home Assistant

Configuring the FreeBSD Firewall with IPFW

Running Home Assistant on FreeBSD Servers