Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is:www.raidatrades.com
I ran this command:certbot SSL
It produced this output:
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/raidatrades.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/raidatrades.com/privkey.pem
Your existing certificate has been successfully renewed, and the new certificate
has been installed.
The new certificate covers the following domains: https://raidatrades.com and
https://www.raidatrades.com
My web server is (include version):Apache2
The operating system my web server runs on is (include version):Ubuntu 18.04 LTS
My hosting provider, if applicable, is: *
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
I came here because I simply cant find what the problem is. I forwarded port 443 for SSL, which is open as the open port tool describes. I ran the certbot without any problems for apache2.
But the redirect is not working. I tried redirecting manually with a .htacces file, that worked BUT: the browser says that my site can not establish a secure connection. This is true on multiple devices.
It also gives a ERR_SSL_PROTOCOL_ERROR when i try to connect to my site with https.
Listening ports :
tcp6 0 0 :::80 :::* LISTEN 7201/apache2
tcp6 0 0 :::443 :::* LISTEN 7201/apache2
my ufw firewall allows everything coming in and out for apache2.
My virtual host file looks like this :
Normal ( port 80 )
<VirtualHost 94.110.172.188: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 www.example.com
ServerAdmin raida@raidatrades.com
DocumentRoot /var/www/html/
Redirect permanent /secure https://raidatrades.com/secure
ServerName raidatrades.com
ServerAlias www.raidatrades.com
# 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}/error.log
CustomLog ${APACHE_LOG_DIR}/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
RewriteEngine on
RewriteCond %{SERVER_NAME} =raidatrades.com [OR]
RewriteCond %{SERVER_NAME} =www.raidatrades.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
vim: syntax=apache ts=4 sw=4 sts=4 sr noet
SSL file ( port 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 www.example.com ServerAdmin raida@raidatrades.com
DocumentRoot /var/www/html/
SSLEngine On
ServerName raidatrades.com
ServerAlias www.raidatrades.com
# 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}/error.log
CustomLog ${APACHE_LOG_DIR}/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
RewriteEngine on
Some rewrite rules in this file were disabled on your HTTPS site,
because they have the potential to create redirection loops.
RewriteCond %{SERVER_NAME} =raidatrades.com [OR]
RewriteCond %{SERVER_NAME} =www.raidatrades.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/raidatrades.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/raidatrades.com/privkey.pem
If you need anything more please just say so, i’m literally breaking my head for days why this simple thing just won’t work. I’m losing my mind.