Android HTTPS error No trusted server certificate


Sebu Murugan

I have an existing API server with HTTPS. When I access it from an Android app, it shows an HTTPS error: Untrusted server certificate. How can I access HTTPS URLs from my Android app?

Lord Shiva

This problem occurs if the SSL certificate is not installed correctly. This can happen for a variety of reasons.

  1. You might use a self-signed certificate. (To fix this you will need a certificate from a trusted CA).

  2. If you have a valid certificate but you don't see the green sign in your mobile browser, it may be that I don't have the full certificate chain installed in Apache and the Android browser doesn't trust one of the intermediate certificates (I had issues like before so).

The solution is to install the full certificate chain in Apache, not just your domain certificate.

In Apache conf you have to provide the following fields

SSLCertificateFile  <Certificate file path>
SSLCertificateKeyFile   <Key file path>
SSLCACertificatePath    <Intermediate bundle path>

You can refer to this document for better understanding.

Related


Android Studio: The server's certificate is not trusted

x Is it safe to ignore this warning? When I create a new project in Android Studio it shows: Server's certificate is not trusted Certificate details Issued To CN (Common Name) *.google.com O (Organization) Google Inc L (Locality) Mount

C# SSL/TLS HTTPS and legitimate/trusted certificate error

kub0x Recently I got a certificate signed by a trusted CA from LetsEncrypt. As you know, this is an intermediate CA that submits the certificate to the DST root CA X3. I've set up certificates for four different URLs, this is just an example: Subject: CN=domai

android studio: https self-signed certificate not trusted

eitan 03 Trying to access https://localhost:5000/ with my own self-signed certificate via android studio (using kotlin) , but I keep getting the error: java.security.cert.CertPathValidatorException: Could not find trust anchor for certificate path . I have mad

android studio: https self-signed certificate not trusted

eitan 03 Trying to access https://localhost:5000/ with my own self-signed certificate via android studio (using kotlin) , but I keep getting the error: java.security.cert.CertPathValidatorException: Could not find trust anchor for certificate path . I have mad

android studio: https self-signed certificate not trusted

eitan 03 Trying to access https://localhost:5000/ with my own self-signed certificate via android studio (using kotlin) , but I keep getting the error: java.security.cert.CertPathValidatorException: Could not find trust anchor for certificate path . I have mad

android studio: https self-signed certificate not trusted

eitan 03 Trying to access https://localhost:5000/ with my own self-signed certificate via android studio (using kotlin) , but I keep getting the error: java.security.cert.CertPathValidatorException: Could not find trust anchor for certificate path . I have mad

nodejs https server certificate error

juanald_reagan I can't use HTTPS and send index.html to the client. Node.js code: var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var fs = require('fs'); var https = require('https'); var options = { key: fs.re

nodejs https server certificate error

juanald_reagan I can't use HTTPS and send index.html to the client. Node.js code: var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var fs = require('fs'); var https = require('https'); var options = { key: fs.re

GeoTrust SSL certificate on Android is not trusted

Vojtech I've purchased an Extended Validation SSL certificate from GeoTrust and configured it to get an A grade: https://www.ssllabs.com/ssltest/analyze.html?d=goout.cz However, on my Android device on Chrome, I get "Certificate not trusted". What could be the

Error: 'raw.githubusercontent.com' certificate is not trusted

Malat I'm trying to retrieve some files from github via a remote server (ssh) using wget and this is what I get: $ wget https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js --2014-11-26 09:30:14-- https://raw.githubusercontent.com/

wget error: 'xyz' certificate is not trusted and has expired

ctrlbrk I have a Debian 10 Buster server in one of several identical hardware/software configurations. I use the script to deploy them and they are all the same. However, one of them throws an error when using wget: # wget https://mirrors.edge.kernel.org/pub/l

wget error: 'xyz' certificate is not trusted and has expired

ctrlbrk I have a Debian 10 Buster server in one of several identical hardware/software configurations. I use the script to deploy them and they are all the same. However, one of them throws an error when using wget: # wget https://mirrors.edge.kernel.org/pub/l

wget error: 'xyz' certificate is not trusted and has expired

ctrlbrk I have a Debian 10 Buster server in one of several identical hardware/software configurations. I use the script to deploy them and they are all the same. However, one of them throws an error when using wget: # wget https://mirrors.edge.kernel.org/pub/l

Error: 'raw.githubusercontent.com' certificate is not trusted

Malat I'm trying to retrieve some files from github via a remote server (ssh) using wget and this is what I get: $ wget https://raw.githubusercontent.com/aseemk/seadragon-ajax/master/seadragon-min.js --2014-11-26 09:30:14-- https://raw.githubusercontent.com/

wget error: 'xyz' certificate is not trusted and has expired

ctrlbrk I have a Debian 10 Buster server in one of several identical hardware/software configurations. I use the script to deploy them and they are all the same. However, one of them throws an error when using wget: # wget https://mirrors.edge.kernel.org/pub/l

wget error: 'xyz' certificate is not trusted and has expired

ctrlbrk I have a Debian 10 Buster server in one of several identical hardware/software configurations. I use the script to deploy them and they are all the same. However, one of them throws an error when using wget: # wget https://mirrors.edge.kernel.org/pub/l