User Tools

Site Tools


Admin Howtos

Virtualhost and SSL Certificate

Say you have a new domain and you want a virtualhost and a signed SSL Certificate. Here is a Howto:

1. Create a self-signed certificate

cd /etc/apache2/ssl/
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout -out

2. Configure the virtualhost with self-signed certificate

cd /etc/apache2/sites-enabled
vim default-ssl.conf

add a virtualhost:

<VirtualHost *:443>
        # Redirect 302 /
        SSLEngine on
        SSLCertificateFile /etc/apache2/ssl/
        SSLCertificateKeyFile /etc/apache2/ssl/

3. Create a certification request

TBD! see

openssl req -new -key -out
apache.txt · Last modified: 2016/08/18 12:13 by hkoller