Last modified: 2014-02-04 21:48:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54630, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52630 - Fix certificate chain issue for tools.wmflabs.org
Fix certificate chain issue for tools.wmflabs.org
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Normal major
: ---
Assigned To: Marc A. Pelletier
:
: 58284 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-08 05:58 UTC by Ryan Lane
Modified: 2014-02-04 21:48 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Lane 2013-08-08 05:58:29 UTC
Cert chain is missing intermediate cert.
Comment 1 jeremyb 2013-08-11 02:39:45 UTC
To be clear, this is not just about doing things right; the service inaccessible to some users (e.g. my phone) in its current state.
Comment 2 jeremyb 2013-08-11 02:43:59 UTC
Also, should copy the nginx conf for cipher prefs, etc. from prod.
Comment 3 Sumana Harihareswara 2013-09-28 00:16:22 UTC
If this is still a problem, I'd say it's at least normal priority.
Comment 4 Daniel Schwen 2014-02-02 15:22:37 UTC
This still exists. I get the certificate error (intermediate missing) on my Android phone and Tablet. For me it causes tool breakage, as my tool depends on a CORS connection to labs, which is refused for hosts with broken certs.
Comment 5 Tim Landscheidt 2014-02-03 03:31:10 UTC
I played around with it a bit yesterday, but any attempt appeared futile.

On tools-webproxy, I made sure RapidSSL_CA.pem was in /etc/ssl/certs, up to date and had a symlink.  I've set SSLCACertificatePath to /etc/ssl/certs, shut down and started up Apache, and still only the server certificate was served either to online test sites or "echo | openssl s_client -connect tools.wmflabs.org:443 | less".

I set SSLCertificateChainFile to tools.wmflabs.org.chained.pem which I created by "cat tools.wmflabs.org.pem RapidSSL_CA.pem GeoTrust_Global_CA.pem > tools.wmflabs.org.chained.pem", yet: Nada.

I've renamed tools.wmflabs.org.chained.pem to tools.wmflabs.org.pem to have Apache read the chained certificate as its only SSLCertificateFile option, and still only the server certificate was served; and in all cases, after a proper shutdown & start.

So, Coren, after this experience and recently watching RobH fiddle with wikitech's certificate for hours to get it right, a checklist: "File x should have one -- CERTIFICATE -- session", "Directive y should point to file Z", etc. would be greatly appreciated :-).
Comment 6 Tim Landscheidt 2014-02-04 02:59:17 UTC
I fixed this with step-by-step instructions from jeremyb, inspired by bug #23631:

- Point SSLCertificateFile to tools.wmflabs.org.pem, and
- point SSLCertificateChainFile to RapidSSL_CA.pem.

Yeah, that's right, not to some chained certificate or whatever, just to the missing intermediate certificate :-).

Thanks again to jeremyb for his help.
Comment 7 Marc A. Pelletier 2014-02-04 03:02:49 UTC
Wait, so SSLCertificateChainFile should specifically /not/ be a certificate chain file?  That's...  so sane.

*groan*

Thanks for debugging this Tim.
Comment 8 Daniel Schwen 2014-02-04 13:07:33 UTC
The error still keeps reoccurring intermittently. I've sent since sent two emails to the labs list. As soon as the bug was closed I tried it on my Android phone and it worked fine. A few hours later I tried it on my tablet and it didn't work. Early this morning it worked, and just now it failed again (this seems to be device independent and only depending on time).

Could there be multiple hosts that need the fix (round robin)?
Comment 9 Daniel Schwen 2014-02-04 15:49:38 UTC
While 
http://www.sslshopper.com/ssl-checker.html#hostname=tools.wmflabs.org
has an all green result

http://www.sslshopper.com/ssl-checker.html#hostname=fastcci1.wmflabs.org
gives a warning ("The certificate is not trusted in all web browsers.")
Comment 10 Tim Landscheidt 2014-02-04 16:01:39 UTC
(In reply to comment #8)
> The error still keeps reoccurring intermittently. I've sent since sent two
> emails to the labs list. As soon as the bug was closed I tried it on my
> Android
> phone and it worked fine. A few hours later I tried it on my tablet and it
> didn't work. Early this morning it worked, and just now it failed again (this
> seems to be device independent and only depending on time).

> Could there be multiple hosts that need the fix (round robin)?

No, there is only one host (tools-webproxy) that handles SSL and then relays via plain http to tools-webserver-0[1-3]/tools-webgrid-01.

I can't reproduce your problems; I've tried three online checks (http://www.sslshopper.com/ssl-checker.html, http://www.digicert.com/help/, https://www.ssllabs.com/ssltest/analyze.html) and all succeed (while they failed previously).

Are you directly accessing https://tools.wmflabs.org/ (vs. CORS in your tool) and seeing the issue?  Which phone/tablet and software are you using?
Comment 11 Tim Landscheidt 2014-02-04 16:06:35 UTC
(In reply to comment #9)
> While 
> http://www.sslshopper.com/ssl-checker.html#hostname=tools.wmflabs.org
> has an all green result

> http://www.sslshopper.com/ssl-checker.html#hostname=fastcci1.wmflabs.org
> gives a warning ("The certificate is not trusted in all web browsers.")

(That was a mid-air collision :-).)  I fixed *only* tools.wmflabs.org (as per the title of this bug :-)).  So I'm closing this bug again.

I assume you use [[wikitech:Help:Proxy]] for fastcci1?  Could you open another bug for that as it is a totally unrelated system?
Comment 12 jeremyb 2014-02-04 21:48:56 UTC
*** Bug 58284 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links