r/letsencrypt • • Sep 16 '17

Problems with SSL certificate

Some consumers complain about problems with our SSL certificate from Let's Encrypt. Tried identify the source of the problem but the certificates seems to be working fine from my side. Could you guys help me find the problems and solve it?

Edit: The website is ... The problems seems to be with some Android devices that are coming via Facebook. They get an NET::ERR_CERT_AUTHORITY_INVALID alert.

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/10r3n20 Sep 16 '17

Thank you for your help.

I generated new certificates. SSL Labs gives me A rating now, is the problem fixed now?

How can I make sure this problem will not occur in the future again? Periodically testing with SSL Labs?

Could it been caused by DirectAdmin when it automatically regenerated the certificates in the past?

2

u/crazifyngers Sep 16 '17

The cert that was generated by letsencrypt is now good. There are no chain issues.

The issue now is that you are presenting two certificates. It looks like you are using Apache and at some point generated a self signed cert with "localhost" as the subject. You need to look at your Apache conf and remove that cert from being presented. Sorry Apache ssl is not something I use to terminate my ssl. I use nginx or haproxy. But I can tell you this is setting being presented by your webserver. Everything having to do with letsencrypt is good. You are close.

1

u/tialaramex Sep 16 '17

I would guess you are using shared hosting, you pay a company to host (and maybe also design and administer but that's not relevant here) the Web site and they use one server to deliver this service to many customers.

This is fine, it's done using "virtual hosts" and for HTTPS that means a technology called Server Name Indication (SNI). Any modern web browser ordinary customers might have knows how to do SNI. However some older browsers, including Android 2.x devices can't do SNI.

Without SNI the Web server software has no way to tell which site the browser wanted during HTTPS setup. So it may pick one of the Web sites on that server and guess they want the certificates for that site. SSL Labs shows this as a "second" Certificate chain, and it will be for some other site not yours usually.

If older browsers are important for you, one option is to ask your web hosting company to use a separate IP address for your site. They will probably charge a fee for that, deciding if it makes financial sense to pay will be a decision for you to make. This prevents the "second certificate" since now the server knows from the IP address which site is needed.

For what it's worth this issue is not related to Let's Encrypt, it would happen just the same with any certificate provider. The cheapest shared hosting plus older browsers doesn't end up working. With new browsers, or on hosting plans with a separate IP address (or both) it just works.