SSL Not Working on Phone, But Works Fine on Desktop and Laptop

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. crt.sh | 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: tptimes.org

I ran this command: sudo certbot run -a webroot -i apache -w /var/www/html/wordpress -d tptimes.org -d www.tptimes.org

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for tptimes.org and www.tptimes.org

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/tptimes.org/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/tptimes.org/privkey.pem
This certificate expires on 2024-10-28.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for tptimes.org to /etc/apache2/sites-available/000-default-le-ssl.conf
Successfully deployed certificate for www.tptimes.org to /etc/apache2/sites-available/000-default-le-ssl.conf
Congratulations! You have successfully enabled HTTPS on https://tptimes.org and https://www.tptimes.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

My web server is (include version):
Server version: Apache/2.4.58 (Ubuntu)
Server built: 2024-07-17T18:55:23
The operating system my web server runs on is (include version): ubuntu

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 2.9.0

i did sudo ls /etc/letsencrypt/live/tptimes.org/ and all certs were there.

not sure whats wrong

Is the phone it isn’t working in an Android device running a version older than 7.1.1? Those devices don’t support Let’s Encrypt. From what you’ve posted it seems your website is otherwise working properly.

2 Likes

Thank you for replying,
My phone is on Android 11.0, and I tried it on my friend's S23, but it doesn't work.

1 Like

Please post exactly what errors you see

2 Likes

That is unusual. Your domain is proxied at Cloudflare so your initial connection is to their CDN edge. That currently uses a cert from Google (they can choose various suppliers)

Connection problems between the CF edge and your Origin server are reported in a different way

Below is a successful connection but it redirects to itself so gets a redirect loop. Notice the location is the same as the URL requested. Also note the Cloudflare server

curl -i4 https://tptimes.org
HTTP/2 301
location: https://tptimes.org/
server: cloudflare
3 Likes

Make sure that your Cloudflare encryption mode is set to Full (strict).

4 Likes

didnt really fix anything,
Should I try removing the Cloudflare ? I previously tried Certbot, but it didn’t work. After that, I added Cloudflare nameservers, tried Certbot again, and it didn’t work initially. However, after waiting a few minutes, it eventually worked, and SSL was activated. So, should I remove the Cloudflare from the account

You can pause Cloudflare or set specific records to DNS Only while you troubleshoot.

3 Likes

Yeah done , i puased cloudfear

Looks like your IPv6 address does not point to your EC2 instance (that IP belongs to 1&1)

Notice in your first post the SSL Labs test connection using IPv6 failed. You should correct the AAAA record in your DNS or remove it if you don't have IPv6 support.

Your phone is probably using IPv6 on your carrier network but your desktop and laptop are using IPv4 with your ISP. Could that explain it? You need to fix your AAAA record in any case.

With Cloudflare proxy enabled I thought it should work anyway as Cloudflare edge prefers IPv4 but maybe I am wrong. @linkp would know that :slight_smile:

4 Likes


I went to the AWS console . It looks like I don’t have IPv6 support enabled. Should I go ahead and remove the AAAA record?

1 Like

should i remove this then

1 Like

Yes, you should remove the AAAA record until you can make one that points to an EC2 instance with IPv6 support

4 Likes

but now

curl -I http://tptimes.org
HTTP/1.1 301 Moved Permanently
Date: Tue, 30 Jul 2024 13:35:14 GMT
Server: Apache/2.4.58 (Ubuntu)
Location: https://tptimes.org/
Content-Type: text/html; charset=iso-8859-1

before its 200 OK

Yes, your Apache server is redirecting an HTTP request to HTTPS that is normal. If you follow the redirect you get

curl -I https://tptimes.org
HTTP/1.1 200 OK
Server: Apache/2.4.58 (Ubuntu)
Link: <https://tptimes.org/index.php/wp-json/>; rel="https://api.w.org/"
Content-Type: text/html; charset=UTF-8

Once you setup Cloudflare proxy again then redirects can be handled by its edge or passed through to your Origin server. Those issues are best handled from the Cloudflare docs or its community

6 Likes

I enabled Cloudflare, and it's working again on my phone. Thank you so much! I’ve been trying to fix it all day.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.