Last modified: 2013-09-04 15:06:00 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 T43437, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41437 - Wikidata.org is using the SSL certificate for *.wikimedia.org
Wikidata.org is using the SSL certificate for *.wikimedia.org
Status: VERIFIED FIXED
Product: Wikimedia
Classification: Unclassified
SSL related (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops
: 41486 (view as bug list)
Depends on:
Blocks: 41487
  Show dependency treegraph
 
Reported: 2012-10-26 21:16 UTC by Alex Monk
Modified: 2013-09-04 15:06 UTC (History)
10 users (show)

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


Attachments

Description Alex Monk 2012-10-26 21:16:32 UTC
Wikidata.org is using the SSL certificate for *.wikimedia.org

Reedy says this is RT #3803, creating bug here so no one else does.
Comment 1 Andre Klapper 2012-10-26 23:37:16 UTC
https://gerrit.wikimedia.org/r/#/c/30307/
Comment 2 Alex Monk 2012-10-27 22:31:02 UTC
Doesn't seem to have fixed it... Or just hasn't been deployed.
Comment 3 Sam Reed (reedy) 2012-10-27 22:41:52 UTC
(In reply to comment #2)
> Doesn't seem to have fixed it... Or just hasn't been deployed.

It was a guess as it looked spurious. Daniel did confirm it was supposed to be deployed by puppet, and then restarted the ssl proxies/terminators


Knocking down to normal/normal as it's not a high priority as it's currently a test site
Comment 4 db [inactive,noenotif] 2012-10-28 07:31:56 UTC
(In reply to comment #3)
> Knocking down to normal/normal as it's not a high priority as it's currently a
> test site

It is a test site, but due to SUL und the image after login and logout you will get a error in the browser (at least IE), which can make wmf wikis (except wikidata) feeling untrusted by other users. So this should fixed asap.
Comment 5 Alex Monk 2012-10-29 12:59:02 UTC
*** Bug 41486 has been marked as a duplicate of this bug. ***
Comment 6 Chad H. 2012-10-29 13:21:11 UTC
I've disabled auto-login to .wikidata.org until we fix SSL.
Comment 7 Alex Monk 2012-10-29 18:18:58 UTC
<Krenair> Ah so wikidata SSL is working now
<^demon> Krenair: For wikidata.org & www.wikidata.org. Lang subdomains need a little further tweaking.
<^demon> Krenair: Apache config is correct. It needs further DNS work.

And Wikidata SUL autologin has been re-enabled with Gerrit change #30623.
Comment 9 Jimmy Xu 2012-11-20 13:04:02 UTC
The certificate chain seems to be erroneously configured, a wrong CA "Wikimedia CA" is being appended to the chain instead of the issuer "DigiCert High Assurance CA-3":

---
Certificate chain
 0 s:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation, Inc./CN=*.wikidata.org
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
 1 s:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation/CN=Wikimedia CA
   i:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation/CN=Wikimedia CA
---

Therefore:

$ curl -v https://www.wikidata.org
* About to connect() to www.wikidata.org port 443 (#0)
*   Trying 2620:0:861:ed1a::12...
* connected
[...cut...]
* SSLv3, TLS alert, Server hello (2):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection #0
Comment 10 MZMcBride 2012-11-23 21:03:03 UTC
I see this bug is now tagged with the "shell" keyword. I wonder if it should actually be tagged with the "ops" keyword instead.
Comment 11 denny vrandecic 2012-11-30 10:27:49 UTC
Is this still open?
Comment 12 Andre Klapper 2012-11-30 13:10:45 UTC
RT #3803 resolved, https://gerrit.wikimedia.org/r/#/c/30307/ merged.
Closing too, thanks for the ping.
Comment 13 Jimmy Xu 2012-11-30 13:38:33 UTC
(In reply to comment #12)
> RT #3803 resolved, https://gerrit.wikimedia.org/r/#/c/30307/ merged.
> Closing too, thanks for the ping.

IMHO the diff doesn't look like a fix :(

If my understanding is correct, currently the certificate chain would let OpenSSL fail to verify the server certificate:

$ openssl s_client -CAfile /etc/ssl/certs/ca-certificates.crt -connect www.wikidata.org:443
CONNECTED(00000003)
depth=0 C = US, ST = California, L = San Francisco, O = "Wikimedia Foundation, Inc.", CN = *.wikidata.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = US, ST = California, L = San Francisco, O = "Wikimedia Foundation, Inc.", CN = *.wikidata.org
verify error:num=27:certificate not trusted
verify return:1
depth=0 C = US, ST = California, L = San Francisco, O = "Wikimedia Foundation, Inc.", CN = *.wikidata.org
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
 0 s:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation, Inc./CN=*.wikidata.org
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
 1 s:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation/CN=Wikimedia CA
   i:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation/CN=Wikimedia CA
^^^
  This is wrong.

  It should be the issuer for cert 0, not a random CA that has nothing to do with the previous cert.

---
Server certificate
-----BEGIN CERTIFICATE-----
[...cut...]
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation, Inc./CN=*.wikidata.org
issuer=/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
---
No client certificate CA names sent
---
SSL handshake has read 3159 bytes and written 542 bytes
---
New, TLSv1/SSLv3, Cipher is RC4-SHA
[...cut...]
    Verify return code: 21 (unable to verify the first certificate)
---
QUIT
DONE
$ 

Reopening again.
Comment 14 Andre Klapper 2013-04-25 16:24:11 UTC
dzahn: Could you take a look at comment 13, please (as you reviewed the initial patch in comment 12)?
Comment 15 Daniel Zahn 2013-04-26 01:02:39 UTC
openssl s_client -CAfile /etc/ssl/certs/ca-certificates.crt -connect www.wikidata.org:443

Certificate chain
 0 s:/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation, Inc./CN=*.wikipedia.org
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA

    Verify return code: 0 (ok)
Comment 16 abraham.taherivand 2013-09-04 15:06:00 UTC
Verified in Wikidata demo time

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


Navigation
Links