• Resolved helandre

    (@helandre)


    Hello
    I don’t have the file ssl.conf or digitalocean to /etc/nginx/site-enabled

    do you help me please ?

    regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author WP Encryption SSL

    (@gowebsmarty)

    Hello @helandre

    Can you confirm if you have Apache or Nginx server?. If you have Nginx server, let us know which files you see in /etc/nginx/site-enabled folder

    Thread Starter helandre

    (@helandre)

    @gowebsmarty
    i use nginx
    i see
    /etc/nginx/site-enabled/default
    /etc/nginx/site-enabled/wordpress

    • This reply was modified 5 years, 1 month ago by helandre.
    • This reply was modified 5 years, 1 month ago by helandre.
    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    @helandre

    Then please check “Wordpress” file, you should have the ssl_certificate and ssl_certificate_key values there which you are supposed to modify

    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    It should exist in one of those 2 files for sure

    Thread Starter helandre

    (@helandre)

    @gowebsmarty

    server {
    listen 80;
    root /var/www/html/wordpress;
    location / {
    try_files $uri $uri/ /index.php?$args;
    }
    index index.php;
    server_name mydomain;

    access_log /var/log/nginx/wordpress.access_log;
    error_log /var/log/nginx/wordpress.error_log
    notice;

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    # # NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
    #
    # # With php5-cgi alone:
    # fastcgi_pass 127.0.0.1:9000;
    # With php5-fpm:
    #/var/run/php5-fpm.sock; changes to /var/run/php7.0-fpm.sock;
    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_index index.php;
    include fastcgi_params;
    }
    }

    • This reply was modified 5 years, 1 month ago by helandre.
    Thread Starter helandre

    (@helandre)

    i must creat the ssl_certificate and ssl_certificate_key line ?

    and past the certificate i have download from the plugin letencrypt in a folder ?

    • This reply was modified 5 years, 1 month ago by helandre.
    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    @helandre No. please check default file. You should see vhost listening port 443 like below,

    Server {
    listen 443;

    If you cannot find this inside default file, we are unable to provide further help. You will need to contact your hosting support to check if SSL is enabled and configured.

    Thread Starter helandre

    (@helandre)

    @gowebsmarty this is the default file
    i have a domain name from ovh and my server is on a raspberry pi at home

    # Default server configuration
    #
    #server {
    #	listen 80 default_server;
    #	listen [::]:80 default_server;
    
    	# SSL configuration
    	#
    	# listen 443 ssl default_server;
    	# listen [::]:443 ssl default_server;
    	#
    	# Note: You should disable gzip for SSL traffic.
    	# See: https://bugs.debian.org/773332
    	#
    	# Read up on ssl_ciphers to ensure a secure configuration.
    	# See: https://bugs.debian.org/765782
    	#
    	# Self signed certs generated by the ssl-cert package
    	# Don't use them in a production server!
    	#
    	# include snippets/snakeoil.conf;
    
    #	root /var/www/html;
    
    	# Add index.php to the list if you are using PHP
    #	index index.php index.html index.htm index.nginx-debian.html;
    
    #	server_name domain;
    
    #	location / {
    		# First attempt to serve request as file, then
    		# as directory, then fall back to displaying a 404.
    #		try_files $uri $uri/ =404;
    #	}
    
    	# pass PHP scripts to FastCGI server
    	#
    #	location ~ \.php$ {
    #		include snippets/fastcgi-php.conf;
    	#
    	#	# With php-fpm (or other unix sockets):
    #		fastcgi_pass unix:/run/php/php7.3-fpm.sock;
    	#	# With php-cgi (or other tcp sockets):
    #		fastcgi_pass 127.0.0.1:9000;
    #               fastcgi_index index.php;
    #                include fastcgi_params;	
    
    #        }
    
    	# deny access to .htaccess files, if Apache's document root
    	# concurs with nginx's one
    	#
    	#location ~ /\.ht {
    	#	deny all;
    	#}
    #}
    
    # Virtual Host configuration for example.com
    #
    # You can move that to a different file under sites-available/ and symlink that
    # to sites-enabled/ to enable it.
    #
    #server {
    #	listen 80;
    #	listen [::]:80;
    #
    #	server_name example.com;
    #
    #	root /var/www/example.com;
    #	index index.html;
    #
    #	location / {
    #		try_files $uri $uri/ =404;
    #	}
    
    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    @helandre You can search all the files under /etc/nginx/ folder and one of it should contain virtual host listening at 443 as below. There you will find ssl_certificate & ssl_certificate_key lines. If you cannot find these lines in any file, You will need to enable port 443 for your server which we cannot help with.

    server {
        listen 443 ssl;
        listen [::]:443 ssl;
    Thread Starter helandre

    (@helandre)

    @gowebsmarty
    do you have an example for this file for nginx i look in the demo video ?
    i don’t this line ssl_certificate ssl_certificate_key

    • This reply was modified 5 years, 1 month ago by helandre.
    Thread Starter helandre

    (@helandre)

    after evry test i have padlock secure when i go to my page

    but i have this message :

    This page is not working mydomain.fr 
    has redirected you too many times.
    Try to delete cookies.
    ERR_TOO_MANY_REDIRECTS
    • This reply was modified 5 years, 1 month ago by helandre.
    • This reply was modified 5 years, 1 month ago by helandre.
    Thread Starter helandre

    (@helandre)

    @gowebsmarty this is my ssl config

    server {
         listen 80;
         
         server_name mydomain.fr;
         return 301 https://$host$request_uri;
         include snippets/well-known.conf;    
    }
    
    server {
         listen 443 ssl;
         listen [::]:443 ssl;
        
         server_name mydomain.fr;
         root /var/www/html/wordpress;
         index index.php;
    
         if ($host != "mydomain.fr") {
               return 301 https://mydomain.fr$request_uri;
           }
    
         include snippets/well-known.conf;
      
         ssl_certificate /etc/ssl/5e43e1f44c903-cert.crt;
         ssl_certificate_key /etc/ssl/5e43e1fb9ad04-key.pem;
         ssl_trusted_certificate /etc/ssl/5e43e20064587-cabundle.crt;
        
         ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
         ssl_ciphers 'ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS';
         ssl_prefer_server_ciphers on;
         ssl_stapling on;
         ssl_stapling_verify on;
         resolver 8.8.8.8 8.8.4.4 valid=300s;
         resolver_timeout 30s;
    
         access_log /var/log/nginx/wordpress.access_log;
         error_log /var/log/nginx/wordpress.error_log;
         
       
    
         location / {
            try_files $uri $uri/ /index.php?$args;
         }
    
       
    
         location ~ \.php$ {
                    fastcgi_split_path_info ^(.+\.php)(/.+)$;
                    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    fastcgi_index index.php;
                    include fastcgi_params;
                    }
           }
    
    • This reply was modified 5 years, 1 month ago by helandre.
    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    @helandre

    As you didn’t mentioned, We thought you are using free version of plugin!. Please open a support ticket in premium forum as stated in the other thread.

    See you on the other side!

    Thanks,

    Thread Starter helandre

    (@helandre)

    @gowebsmarty ok but i can’t submit a ticket i have this message : You are not allowed to submit a ticket.

    Plugin Author WP Encryption SSL

    (@gowebsmarty)

    @helandre We have corrected your user permissions. Please try submitting a ticket now.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘letencrypt for no cpanel in ssh’ is closed to new replies.