Startseite‎ > ‎Linuix‎ > ‎OwnCloud‎ > ‎

Die SSL-Verschlüsselnug einrichten

mkdir -p /etc/apache2/ssl

cd /etc/apache2/ssl

openssl genrsa -out server.key 4096

openssl req -new -key server.key -out server.csr

Country  DE
State or Province Name (Bundesland): = z. B. RLP
Locality Name, eg. City (Stadt): = z. B. Koblenz
Organization Name (Firmenname): = Privat
Organizational Unit Name (Abteilung) = Enter
Common Name, eg. YOUR Name: = Name des Servers, z- B. owncloud.rechnername.de
Email Adress: = E-Mail Adresse
A challenge password: = Enter
An optional company name: = Enter


openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

chmod 400 server.key
----------------

nano /etc/apache2/sites-enabled/000-default
Hinzufügen:

<VirtualHost *:443>
DocumentRoot /var/www
ServerName NAME EURES SERVERS
SSLEngine on
SSLCertificateFile
/etc/apache2/ssl/server.crt
SSLCertificateKeyFile
/etc/apache2/ssl/server.key
</VirtualHost>
----------------

nano /etc/apache2/sites-available/default
Hinzufügen:

<VirtualHost *:443>
DocumentRoot /var/www
ServerName NAME EURES SERVERS
SSLEngine on
SSLCertificateFile
/etc/apache2/ssl/server.crt
SSLCertificateKeyFile
/etc/apache2/ssl/server.key
</VirtualHost>
-------------------------------


nano /etc/apache2/sites-available/default-ssl
Hinzufügen was nicht vorhanden ist:

<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateKeyFile
/etc/apache2/ssl/server.key
SSLCertificateFile
/etc/apache2/ssl/server.crt
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfModule>

--------------------

nano /etc/apache2/ports.conf
Hinzufügen:

NameVirtualHost *:443
Listen 443
---------------------
a2enmod ssl
apache2ctl configtest
apache2ctl restart

Ein Zertifikat auslesen:
openssl x509 -noout -text -in Zertifikatname.crt

Comments