Zertifikat erstellen
# cd /etc/ssl
root@ubuntu1604:/etc/ssl# openssl req -x509 -nodes -days 1000 -newkey rsa:2048 -keyout ubuntu1604.key -out ubuntu1604.crtGenerating a 2048 bit RSA private key
.................................................+++
................+++
writing new private key to 'ubuntu1604.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value Buy Acimox (Amoxil) without Prescription ,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:Baden-Wuerttemberg
Locality Name (eg, city) []:Nussloch
Organization Name (eg, company) [Internet Widgits Pty Ltd]:hoelzle.net
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:ubuntu1604.hoelzle.net
Email Address []:
vi /etc/apache2/sites-available/default-ssl.conf
... SSLEngine on # A self-signed (snakeoil) certificate can be created by installing # the ssl-cert package. See # /usr/share/doc/apache2/README.Debian.gz for more info. # If both key and certificate are stored in the same file, only the # SSLCertificateFile directive is needed. SSLCertificateFile /etc/ssl/ubuntu1604.crt SSLCertificateKeyFile /etc/ssl/ubuntu1604.key ...
root@ubuntu1604:/etc/apache2/sites-available# a2ensite default-ssl.conf
sudo a2enmod ssl
sudo service apache2 force-reload