Je cherche à optimiser la configuration d un server web apache2 qui n utilise que le SSL.
 
Le serveur fonctionne bien, mais j ai un petit soucis avec mon certificat SSL.
 
En effet, celui ci vérifie le nom de ma machine (hostname) qui est différent du nom de domaine. Du coup, l utilisateur a chq fois un message d alerte sur ce pb, message que j aimerais ne plus avoir.
 
Voici qques lignes de mon httpd.conf (modifié avec des données fake)
 
Code :
 - NameVirtualHost 111.222.333.444:80
 - NameVirtualHost 111.222.333.444:443
 - DocumentRoot /home/htdocs/html
 - # non secure connection is desactivated
 - <VirtualHost 111.222.333.444:80 >
 - 	ServerName providerhostname.server.info
 -    ServerAlias myserverdomain.de www.myserverdomain.de
 - 	ServerAdmin intranetadmin@myserverdomain.de
 - 	Redirect Permanent / https://www.myserverdomain.de/
 - 	#Log
 - 	ErrorLog /home/htdocs/log/error_nossl.log
 - 	TransferLog /home/htdocs/log/access_nossl.log
 - 	CustomLog /home/htdocs/log/nossl.log combined
 - </VirtualHost>
 - <IfModule mod_ssl.c>
 - <VirtualHost 111.222.333.444:443 >
 - 	ServerName providerhostname.server.info
 -    ServerAlias myserverdomain.de www.myserverdomain.de
 - 	ServerAdmin intranetadmin@myserverdomain.de
 - 	DocumentRoot /home/htdocs/html
 - 	UseCanonicalName Off
 - 	# Allow execution of PHP scripts (.php only for php4)
 -        AddType application/x-httpd-php .php
 -        AddType application/x-httpd-php-source .phps
 -        DirectoryIndex index.htm index.html index.php
 -      
 - 	# SSL
 - 	SSLEngine on
 - 	SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
 - 	SSLCertificateFile /etc/apache2/ssl.crt/server.crt
 - 	SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
 - 	#   Certificate Authority (CA):
 - 	SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
 - 	SSLVerifyClient none
 - 	# Downgrade to HTTP 1.0 because of browser broken implementation of HTTP 1.1
 - 	#SetEnvIf User-Agent ".*MSIE.*" \
 - 	#  nokeepalive ssl-unclean-shutdown \
 - 	#  downgrade-1.0 force-response-1.0
 - 	#Log
 - 	ErrorLog /home/htdocs/log/error_log
 - 	TransferLog /home/htdocs/log/access_log
 - 	CustomLog /home/htdocs/log/ssl_request_log ssl_combined
 -    #SuexecUserGroup web0 user
 -    ScriptAlias /cgi-bin/ /home/htdocs/html/cgi-bin/
 -    php_admin_value open_basedir /home/htdocs/html/
 -    php_admin_value file_uploads 1
 -    php_admin_value upload_tmp_dir /home/htdocs/phptmp/
 - 	<Directory "/home/htdocs/html">
 -   SSLRequireSSL
 -   php_admin_flag safe_mode off
 -   AllowOverride All
 -   Options Indexes SymLinksIfOwnerMatch
 -   Order allow,deny
 -   Allow from all
 - 	</Directory>
 - 	<Directory "/home/htdocs">
 - 	  <Files ~ "^\.ht">
 - 	    deny from all
 - 	  </Files>
 - 	  AllowOverride Indexes  AuthConfig Limit  FileInfo
 - 	  Options FollowSymLinks Includes
 - 	</Directory>
 - 	<Directory "/home/htdocs/html">
 - 	  Options -FollowSymLinks -SymLinksIfOwnerMatch
 - 	  <IfModule mod_access.c>
 - 	    Deny from all
 - 	  </IfModule>
 - 	</Directory>
 - </VirtualHost>
 - </IfModule>
 
  | 
 
 
Désolé si c est un peu indigeste. Quelle option dois je rajouté pour ne plus avoir l alerte : "SSL error:host(www.myserverdomain.de)!=cert(providerhostname.server.info)"
 
(message d alerte de lynx, plus explicite que ceux de Firefox ou IE!)
 
Message édité par Eric B le 28-07-2005 à 16:14:52