Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSL cert "err_cert_authority_invalid" on mobile chrome only

Domain: https://www.amz2btc.com

Analysis from SSL Labs: https://www.ssllabs.com/ssltest/analyze.html?d=amz2btc.com

All my desktop browsers open this fine. Mobile Firefox opens this fine. Only when I tried with mobile Chrome did I get the error: err_cert_authority_invalid

I know very little about SSL, so I can't really make sense of the SSL report or why this error is coming up. If someone could ELI5, that would be ideal. :)

like image 253
S. J. Avatar asked Jan 11 '15 22:01

S. J.


People also ask

Why is SSL not working on mobile?

The most likely reason for the error is that the certificate authority that issued your SSL certificate is trusted on your desktop, but not on your mobile.

How do I add a certificate in Chrome mobile?

Start Android Chrome on the Android device, and then enter the access URL in the URL field. In the dialog box for selecting the certificate, select the client certificate added and tap Allow. If multiple client certificates have been added to the Android device, multiple candidates will be displayed.

How do I view certificates in Chrome mobile?

Android (v.Click the padlock icon next to the URL. Then click the "Details" link. 2. From here you can see some more information about the certificate and encrypted connection, including the issuing CA and some of the cipher, protocol, and algorithm information.


2 Answers

I just spent the morning dealing with this. The problem wasn't that I had a certificate missing. It was that I had an extra.

I started out with my ssl.conf containing my server key and three files provided by my SSL certificate authority:

#   Server Certificate: SSLCertificateFile /etc/pki/tls/certs/myserver.cer  #   Server Private Key: SSLCertificateKeyFile /etc/pki/tls/private/myserver.key  #   Server Certificate Chain: SSLCertificateChainFile /etc/pki/tls/certs/AddTrustExternalCARoot.pem  #   Certificate Authority (CA): SSLCACertificateFile /etc/pki/tls/certs/InCommonServerCA.pem 

It worked fine on desktops, but Chrome on Android gave me err_cert_authority_invalid

A lot of headaches, searching and poor documentation later, I figured out that it was the Server Certificate Chain:

SSLCertificateChainFile /etc/pki/tls/certs/AddTrustExternalCARoot.pem 

That was creating a second certificate chain which was incomplete. I commented out that line, leaving me with

#   Server Certificate: SSLCertificateFile /etc/pki/tls/certs/myserver.cer  #   Server Private Key: SSLCertificateKeyFile /etc/pki/tls/private/myserver.key  #   Certificate Authority (CA): SSLCACertificateFile /etc/pki/tls/certs/InCommonServerCA.pem 

and now it's working on Android again. This was on Linux running Apache 2.2.

like image 93
Mike A Avatar answered Oct 16 '22 04:10

Mike A


I had this same problem while hosting a web site via Parse and using a Comodo SSL cert resold by NameCheap.

You will receive two cert files inside of a zip folder: www_yourdomain_com.ca-bundle www_yourdomain_com.crt

You can only upload one file to Parse: Parse SSL Cert Input Box

In terminal combine the two files using:

cat www_yourdomain_com.crt www_yourdomain_com.ca-bundle > www_yourdomain_com_combine.crt 

Then upload to Parse. This should fix the issue with Android Chrome and Firefox browsers. You can verify that it worked by testing it at https://www.sslchecker.com/sslchecker

like image 40
Jasper Avatar answered Oct 16 '22 05:10

Jasper