Hi,
I have a big problem for transform all website in ssl, indeed i have an error for all browser when i go to my website but i don’t understand why ;(
So i hope that you can help me.
My domain is: aerolurcy.fr
I ran this command: certbot certonly –d yourdomain.com
It produced this output:
No problem all cert file generated
My web server is (include version): Nginx
The operating system my web server runs on is (include version): Debian 8
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
This is my config where they are all virtualhost but i have listed only 1 but it is exactly the same.
server{
listen 51.255.130.204:443 ssl;
listen [::]:443;
server_name aerolurcy.fr;
root /var/www/aerolurcy;
index index.php;
# Par défaut les certificats générés avec certbot vont dans /etc/letsencrypt/live/
# Il faut évidement remplacer le chemin par celui correspondant au domaine
ssl_certificate /etc/letsencrypt/live/aerolurcy.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/aerolurcy.fr/privkey.pem;
# Les protocoles SSL utilisés
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
# Activer le ciphers et mettre ceux autorisés (je vous laisse faire de plus amples recherches pour ça ;) )
ssl_prefer_server_ciphers on;
ssl_ciphers 'DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-CAMELLIA256-SHA:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-CAMELLIA128-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA256';
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_dhparam /etc/nginx/dhparam.pem;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;}
server{...}