Ssl server certificate does NOT include an ID which matches

Lume56 Messages postés 14 Date d'inscription   Statut Membre Dernière intervention   -  

Bonsoir, 

J'avance dans la sécurisation de mon site installé sur un Raspberry et connecté à une Freebox. Quelques infos :

  • J'ai un nom de domaine (jean-dupont.fr)
  • une adresse ip fixe
  • le serveur (raspberry) a l'adresse suivante : 192.168.1 245
  • gestion des ports (Freebox):  créé pour le port 80. J'ai supprimé momentanément celui pour le port 443 car le site n'est pas bien sécurisé. 
  • j'ai créé un certificat avec Certbot et activé le https mais j'obtiens un message d'erreur.(error.log)
[Sat Feb 21 18:59:44.934656 2026] [ssl:warn] [pid 1525:tid 1525] AH01909: jean.dupont.fr:443:0 server certificate does NOT include an ID which matches the server name


Je pense que l'erreur se trouve dans le fichier /etc/apache2/sites-available/wordpress.conf car je m'y perds quelque peu malgré tout ce que j'ai pu lire.

/etc/apache2/sites-available/wordpress.conf

bernard@rasp56400:/etc/apache2/sites-available $ cat wordpress.conf
<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
	ServerName 192.168.1.245
	ServerAlias www.jean-dupont.fr
	# ServerAdmin webmaster@localhost
	DocumentRoot /var/www/html/wordpress

	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/wordpress/error.log
	CustomLog ${APACHE_LOG_DIR}/wordpress/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf
</VirtualHost>



<VirtualHost *:443>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        ServerName 192.168.1.245
	ServerAlias www.jean-dupont.fr
        # ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/wordpress

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/wordpress/error.log
        CustomLog ${APACHE_LOG_DIR}/wordpress/access.log combined

	SSLEngine on
        Include      /etc/letsencrypt/options-ssl-apache.conf
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
        SSLCertificateFile   /etc/letsencrypt/live/www.jean-dupont.fr/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/www.jean-dupont.fr/privkey.pem
</VirtualHost>

Qui aurait une solution ?
Merci.

Linux / Firefox 140.0

A voir également: