La réponse, c'est que vous n'avez pas le bon tutoriel pour configurer votre localhost en SSL !Citation
mareon
J'essaie d'utiliser SSL en localhost.
J'ai suivi plusieurs tutoriaux (celui qui a finalement marché = [www.youtube.com]), j'ai maintenant wamp qui fonctionne, mais voici ce qui s'affiche lorsque je teste mon site (https:##localhost/mywebsite)
Citation
Mozilla Firefox
localhost uses an invalid security certificate.
The certificate is not trusted because it is self-signed.
(Error code: sec_error_unknown_issuer)
Citation
Chrome
Your connection to localhost is encrypted using an obsolete cipher suite. Further, this page includes other resources which are not secure. These resources can be viewed by others while in transit, and can be modified by an attacker to change the behavior of the page.
The connection uses TSL 1.2.
The connection is encrypted using AES_256_CBC, with HMAC-SHA1 for message authentication and ECDHE_RSA as the key exchange mechanism.
Citation
Chrome
Your connection is not private
Attackers might be trying to steal your information from test (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID
Automatically report details of possible security incidents to Google. Privacy policy
Back to safetyHide advanced
This server could not prove that it is test; its security certificate is from Localhost. This may be caused by a misconfiguration or an attacker intercepting your connection.
Proceed to test (unsafe)
Citation
httpd-vhosts
# ----------------------------- #
# Localhost without SSL #
# ----------------------------- #
<VirtualHost *:80>
ServerName localhost
ServerAdmin admin@example.com
ServerAlias localhost.com www.localhost.com
DocumentRoot "c:/wamp/www/"
#
ErrorLog "c:/wamp/Logs/error.log"
CustomLog "c:/wamp/Logs/custom.log" common
#
<Directory />
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride none
<RequireAny>
Require local
</RequireAny>
</Directory>
# Redirect / [localhost]
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/test"
ServerName test
<Directory "/">
AllowOverride All
Require local
</Directory>
</VirtualHost>
# -------------------------- #
# Localhost with SSL #
# -------------------------- #
<IfModule ssl_module>
<VirtualHost 127.0.0.1:443>
ServerName localhost
ServerAlias localhost.com www.localhost.com
ServerAdmin admin@example.com
DocumentRoot "c:/wamp/www/"
#
ErrorLog "c:/wamp/Logs/error.log"
CustomLog "c:/wamp/Logs/custom.log" common
#
SSLEngine on
SSLCertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Localhost/localhost.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Server/Server.key"
#
# SSLCACertificatePath "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Ca"
SSLCACertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Ca/Ca.crt"
#
SSLVerifyClient require
SSLVerifyDepth 10
#
<Directory />
SSLOptions +StdEnvVars
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride none
#
<RequireAny>
Require local
</RequireAny>
</Directory>
#
<FilesMatch "\.(cgi|shtml|phtml|php)$">
# SSLOptions +StdEnvVars
</FilesMatch>
#
BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
CustomLog "c:/wamp/Logs/custom.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfModule>
<IfModule ssl_module>
<VirtualHost 127.0.0.1:443>
ServerName test
ServerAdmin admin@example.com
DocumentRoot "c:/wamp/www/test"
#
SSLEngine on
SSLCertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/test/test.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Server/Server.key"
#
# SSLCACertificatePath "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Ca"
SSLCACertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/certificates/Ca/Ca.crt"
#
SSLVerifyClient require
SSLVerifyDepth 10
#
<Directory />
SSLOptions +StdEnvVars
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride none
#
<RequireAny>
Require local
</RequireAny>
</Directory>
#
<FilesMatch "\.(cgi|shtml|phtml|php)$">
# SSLOptions +StdEnvVars
</FilesMatch>
</VirtualHost>
</IfModule>
http://testalors vous devez créer un certificat portant le nom "test".