Web developers webmaster Website developer Wordpress

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

Solution of Failed to connect to www.ukgoodbye.info port 443: Connection refused

The first I have check on php.ini if SSL is activated:

openssl

OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1f 6 Jan 2014
OpenSSL Header Version OpenSSL 1.0.1f 6 Jan 2014

I configured the htaccess following the recommendations, Force your site to load securely with an .htaccess file
1- Checked the SSL is active on php configuration, I have tried the option 1
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result, check again for ssl but unfortunately is not working at all.
a) Check using curl:
(7) Failed to connect to www.ukgoodbye.co.uk port 443: Connection refused.

2- Tried the option 2:
Full example including the default WordPress code

Below is what your .htaccess file looks like with both the new HTTPS code and existing WordPress code.


RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L,NE]

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Result: Is still not working. It looks like the port 443 is not opened at server level. Using the SSL checker with result:


Server Type: Apache
 	
No SSL certificates were found on www.hatley.info. Make sure that the name resolves to the correct server and that the SSL port (default is 443) is open on your server's firewall.

Last option contact the hosting service to open the port 443, and  “et voila” now everything is working:

 

These results were cached from June 6, 2019, 5:38 am PST to conserve server resources.
If you are diagnosing a certificate installation problem, you can get uncached results by clicking here.

www.ukgoodbye.co.uk resolves to 77.72.0.126

Server Type: LiteSpeed

The certificate should be trusted by all major web browsers (all the correct intermediate certificates are installed).

The certificate was issued by Let’s Encrypt.
The certificate will expire in 85 days.

The hostname (www.ukgoodbye.co.uk) is correctly listed in the certificate.

Common name: ukgoodbye.co.uk
SANs: cpanel.ukgoodbye.co.uk, mail.ukgoodbye.co.uk, ukgoodbye.co.uk, webdisk.ukgoodbye.co.uk, webmail.ukgoodbye.co.uk, www.ukgoodbye.co.uk
Valid from June 5, 2019 to September 3, 2019
Serial Number: 03c813484b9936945ea50dc0b7203eba0975
Signature Algorithm: sha256WithRSAEncryption
Issuer: Let’s Encrypt Authority X3
Common name: Let’s Encrypt Authority X3
Organization: Let’s Encrypt
Location: US
Valid from March 17, 2016 to March 17, 2021
Serial Number: 0a0141420000015385736a0b85eca708
Signature Algorithm: sha256WithRSAEncryption
Issuer: DST Root CA X3

Leave a Reply