Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 13/09/2018, à 12:07

aznyouth

Probleme SSL?

Bonjour,

J'ai un soucis provenant soit du ssl ou de apache.
Tout marche bien jusqu'a aujourd'hui, maintenant j'arrive plus a acceder a mon site en localhost
Quelqu'un aurait une petit idee?

D'apres les log de Apache:

[Thu Sep 13 11:52:01.865998 2018] [ssl:warn] [pid 23785] AH01909: magento.fr:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 13 11:52:01.886043 2018] [ssl:warn] [pid 23787] AH01909: magento.fr:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 13 11:52:01.888210 2018] [mpm_prefork:notice] [pid 23787] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations
[Thu Sep 13 11:52:01.888225 2018] [core:notice] [pid 23787] AH00094: Command line: '/usr/sbin/apache2'
[Thu Sep 13 11:52:01.926131 2018] [mpm_prefork:notice] [pid 23787] AH00171: Graceful restart requested, doing restart
[Thu Sep 13 11:52:01.945045 2018] [ssl:warn] [pid 23787] AH01909: magento.fr:443:0 server certificate does NOT include an ID which matches the server name
[Thu Sep 13 11:52:01.945104 2018] [mpm_prefork:notice] [pid 23787] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0h configured -- resuming normal operations
[Thu Sep 13 11:52:01.945108 2018] [core:notice] [pid 23787] AH00094: Command line: '/usr/sbin/apache2'

Ma config:
Stack LAMP avec php5.6 (pour les besoins du travail)

vhost:

<VirtualHost *:80>                                                                                                                                                                                                                                                                        
        ServerAdmin magento.fr                                                                                                                                                                                                                                                            
        ServerName magento.fr                                                                                                                                                                                                                                                             
        ServerAlias magento.fr                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                          
        ErrorLog ${APACHE_LOG_DIR}/error.log                                                                                                                                                                                                                                              
        CustomLog ${APACHE_LOG_DIR}/access.log combined                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                          
        DocumentRoot /var/www/html/magento/htdocs/                                                                                                                                                                                                                                        
        <Directory />                                                                                                                                                                                                                                                                     
                Options FollowSymLinks                                                                                                                                                                                                                                                    
                AllowOverride All                                                                                                                                                                                                                                                         
        </Directory>                                                                                                                                                                                                                                                                      
        <Directory /var/www/html/magento/htdocs/ >                                                                                                                                                                                                                                        
                Options Indexes FollowSymLinks MultiViews                                                                                                                                                                                                                                 
                AllowOverride All                                                                                                                                                                                                                                                         
                Order allow,deny                                                                                                                                                                                                                                                          
                allow from all                                                                                                                                                                                                                                                            
        </Directory>                                                                                                                                                                                                                                                                      
</VirtualHost>                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                          
<IfModule mod_ssl.c>                                                                                                                                                                                                                                                                      
<VirtualHost *:443>                                                                                                                                                                                                                                                                       
        ServerAdmin magento.fr                                                                                                                                                                                                                                                            
        ServerName magento.fr:443                                                                                                                                                                                                                                                         
        ServerAlias magento.fr                                                                                                                                                                                                                                                            
        DocumentRoot /var/www/html/magento/htdocs                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                          
        <Directory /var/www/html/magento/htdocs >                                                                                                                                                                                                                                         
                Options Indexes FollowSymLinks MultiViews                                                                                                                                                                                                                                 
                AllowOverride All                                                                                                                                                                                                                                                         
                Require local                                                                                                                                                                                                                                                             
        </Directory>                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                          
        ErrorLog ${APACHE_LOG_DIR}/error.log                                                                                                                                                                                                                                              
        CustomLog ${APACHE_LOG_DIR}/access.log combined                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                          
        SSLEngine on                                                                                                                                                                                                                                                                      
        SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL                                                                                                                                                                                                   
        SSLCertificateFile /etc/ssl/magento.crt                                                                                                                                                                                                                                           
        SSLCertificateKeyFile /etc/ssl/magento.key                                                                                                                                                                                                                                        
        #SSLCACertificateFile /etc/ssl/magento.fr.ca.crt                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                          
        <FilesMatch "\.(cgi|shtml|phtml|php)$">                                                                                                                                                                                                                                           
                SSLOptions +StdEnvVars                                                                                                                                                                                                                                                    
        </FilesMatch>                                                                                                                                                                                                                                                                     
        <Directory /usr/lib/cgi-bin>                                                                                                                                                                                                                                                      
                SSLOptions +StdEnvVars                                                                                                                                                                                                                                                    
        </Directory>                                                                                                                                                                                                                                                                      
        BrowserMatch "MSIE [2-6]" \                                                                                                                                                                                                                                                       
                        nokeepalive ssl-unclean-shutdown \                                                                                                                                                                                                                                
                        downgrade-1.0 force-response-1.0                                                                                                                                                                                                                                  
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                          
</VirtualHost>                                                                                                                                                                                              
</IfModule> 

/etc/hosts:

127.0.0.1       localhost                                                                                                                                                                                                                                                                 
127.0.1.1       anthony-XPS-8930                                                                                                                                                                                                                                                          
127.0.0.1       magento.fr 

Hors ligne

#2 Le 13/09/2018, à 13:03

bruno

Re : Probleme SSL?

Bonjour,

Comment as-tu généré ton certificat ?
Utilises-tu réellement le nom de domaine magento.fr ? Je doute que ce nom de domaine t'appartienne…
L'erreur indique que le certificat n'est pas valable pour le nom de domaine utilisé (localhost ou magento.fr ?)

La doc : https://doc.ubuntu-fr.org/apache2#https

Dernière modification par bruno (Le 13/09/2018, à 14:09)

Hors ligne

#3 Le 13/09/2018, à 13:32

shoot76

Re : Probleme SSL?

Il te faut renouveler ton certificat en y ajoutant le nom de domaine manquant.


~ Data-sientist freelance : https://skulder.fr

Hors ligne