SSL unter Apache einrichten

Tutorialdetails

Tutorial: SSL unter Apache
Autor PsyCore
Version 1.3
Quelle hier klicken
Kommentar ins Gästebuch schreiben

Besuche uns auf facebook.com und erhalte immer aktuelle Hilfestellungen, Anleitungen und Infos!

CSR Request

v05-s42:~/ssl# openssl req -new -nodes -keyout secure_yourhost_com.key -out secure_yourhost_com.csr -newkey rsa:2048
Generating a 2048 bit RSA private key
....................................................+++
...........................................................+++
writing new private key to 'secure_yourhost_com.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,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:DE
State or Province Name (full name) [Some-State]:NRW
Locality Name (eg, city) []:City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:yourhost.com
Organizational Unit Name (eg, section) []:Operations
Common Name (eg, YOUR name) []:secure.yourhost.com
Email Address []:admin@yourhost.com
 
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:.
An optional company name []:.

Zertifikat Anbieter

Apache Konfiguration

mhost.conf bzw. entsprechende Subdomain unter sites-enabled:

NameVirtualHost your.server.ip.here:443
...
    SSLEngine on
    SSLCertificateKeyFile /etc/ssl.key/name.of.key
    SSLCertificateFile /etc/ssl.crt/name.of.crt
    SSLCertificateChainFile /etc/ssl.crt/name.of.ca-bundle
 
    # The following lines stopps the BEAST attack
    # more info at
    # https://community.qualys.com/blogs/securitylabs/2011/10/17/mitigating-the-beast-attack-on-tls
 
    SSLHonorCipherOrder On
    SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH

Evt. muss das SSL Modul im Apache noch aktiviert werden:

a2enmod ssl

Nun ein Neustart und es sollte funktionieren:

/etc/init.d/apache2 restart
Drucken/exportieren
QR-Code
QR-Code SSL unter Apache einrichten (erstellt für aktuelle Seite)