| Bienvenue invité! Login |
|
Support
Générer un CSR pour Open-Xchange avec Apache
Modifier la configuration de start-up d'Apache2:
# vim /etc/sysconfig/apache2
default setting:
APACHE_SERVER_FLAGS=""
change to:
APACHE_SERVER_FLAGS="-D SSL"
add rewrite to APACHE_MODULES:
APACHE_MODULES="access actions .... jk rewrite"Create a SSL-certificate
Créer un certificat pour Apache2:
# openssl genrsa -out /etc/apache2/ssl.key/ox.key 2048
Generating RSA private key, 2048 bit long modulus
++++....+++.................++++++.....++++++e is 65537 (0x10001)
# openssl req -new -x509 -days 365 -key /etc/apache2/ssl.key/ox.key -out /etc/apache2/ssl.crt/ox.crt
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]: Germany, Berlin
Locality Name (eg, city) []: Berlin
Organization Name (eg, company) [Internet Widgits Pty Ltd]: OXTester
Organizational Unit Name (eg, section) []:EDV-WebAdministration
Common Name (eg, YOUR name) []: PROVIDE YOU OX MACHINE'S FULL URL HERE!
Email Address []:webmaster[AT_noSpam]domain.tldCreate a config file for OX
Créer un fichier de configuration séparée, par exemple '/etc/apache2/conf.d/sslox.conf':
<VirtualHost domain.tld:80>
ServerAlias domain.tld
ServerAdmin webmaster@domain.tld
RewriteEngine on
RewriteRule ^(.*) https://domain.tld$1
</VirtualHost>
<VirtualHost _default_:443>
DocumentRoot "/srv/www/htdocs"
ServerAlias domain.tld
ServerAdmin webmaster@domain.tld
ErrorLog /var/log/apache2/error_log_ssl
TransferLog /var/log/apache2/access_log_ssl
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl.crt/ox.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/ox.key
<Files ~ ".(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/srv/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*"
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
CustomLog /var/log/apache2/ssl_request_log
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b"
</VirtualHost>
Créer le fichier suivant pour simplifier le startup OX à http://url au lieu de http://url/cgi-bin/login.pl:
# cd /srv/www/htdocs
# vim index.html
Use the following file for an automatic redirect:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html4/loose.dtd">
<html lang="de">
<head>
<!-- Weiterleitung zur OX-Startseite-->
<META HTTP-EQUIV="Refresh" CONTENT="0; url=/cgi-bin/login.pl">
</head>
</html>
Certificats SSL |
Noms de Domaine |
Hosting
Revendeurs |
Networking4all445 Boulevard Gambetta T: 00800 1602-1603 |