{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2464","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2464/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2464/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2464/events","html_url":"https://github.com/rust-lang/cargo/issues/2464","id":139796981,"number":2464,"title":"\"SSL connect error\" on Windows","user":{"login":"gm23","id":17420392,"avatar_url":"https://avatars.githubusercontent.com/u/17420392?v=3","gravatar_id":"","url":"https://api.github.com/users/gm23","html_url":"https://github.com/gm23","followers_url":"https://api.github.com/users/gm23/followers","following_url":"https://api.github.com/users/gm23/following{/other_user}","gists_url":"https://api.github.com/users/gm23/gists{/gist_id}","starred_url":"https://api.github.com/users/gm23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gm23/subscriptions","organizations_url":"https://api.github.com/users/gm23/orgs","repos_url":"https://api.github.com/users/gm23/repos","events_url":"https://api.github.com/users/gm23/events{/privacy}","received_events_url":"https://api.github.com/users/gm23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-03-10T06:13:39Z","updated_at":"2016-08-04T07:44:23Z","closed_at":null,"body":"I am currently building servo on Windows 10 Pro, version 1511 (64-bit), with msys2 (64-bit) and inside the MinGW-w64 shell, and I get the following error message:\r\n\r\n```\r\n$ ./mach build --release --verbose\r\ncargo build --release -v\r\n Downloading url v0.5.5\r\nunable to get packages from source\r\n\r\nCaused by:\r\n  failed to download package `url v0.5.5` from https://crates.io/api/v1/crates/url/0.5.5/download\r\n\r\nCaused by:\r\n  SSL connect error\r\nBuild completed in 2.15s\r\n```\r\n\r\nWhich is strange as curl works without problems (with redirection):\r\n```\r\n$ curl -v -L https://crates.io/api/v1/crates/url/0.5.5/download > file\r\n* timeout on name lookup is not supported\r\n*   Trying 23.21.180.91...\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to crates.io (23.21.180.91) port 443 (#0)\r\n* ALPN, offering http/1.1\r\n* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH\r\n* successfully set certificate verify locations:\r\n*   CAfile: C:/msys64/mingw64/ssl/certs/ca-bundle.crt\r\n  CApath: none\r\n* TLSv1.2 (OUT), TLS header, Certificate Status (22):\r\n} [5 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\r\n} [512 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server hello (2):\r\n{ [89 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Certificate (11):\r\n{ [2152 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server key exchange (12):\r\n{ [333 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server finished (14):\r\n{ [4 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):\r\n} [70 bytes data]\r\n* TLSv1.2 (OUT), TLS change cipher, Client hello (1):\r\n} [1 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Finished (20):\r\n} [16 bytes data]\r\n* TLSv1.2 (IN), TLS change cipher, Client hello (1):\r\n{ [1 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Finished (20):\r\n{ [16 bytes data]\r\n* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256\r\n* ALPN, server did not agree to a protocol\r\n* Server certificate:\r\n*        subject: CN=www.crates.io\r\n*        start date: Nov  5 16:52:33 2015 GMT\r\n*        expire date: Nov  7 22:55:23 2016 GMT\r\n*        subjectAltName: crates.io matched\r\n*        issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3\r\n*        SSL certificate verify ok.\r\n} [5 bytes data]\r\n> GET /api/v1/crates/url/0.5.5/download HTTP/1.1\r\n> Host: crates.io\r\n> User-Agent: curl/7.47.1\r\n> Accept: */*\r\n>\r\n{ [5 bytes data]\r\n< HTTP/1.1 302 Found\r\n< Connection: keep-alive\r\n< Server: nginx\r\n< Date: Thu, 10 Mar 2016 03:58:47 GMT\r\n< Transfer-Encoding: chunked\r\n< Location: https://crates-io.s3-us-west-1.amazonaws.com/crates/url/url-0.5.5.crate\r\n< Set-Cookie: cargo_session=--PBVtejYpqgihoNU4gy+Z6jCDXMg=; HttpOnly; Secure; Path=/\r\n< Strict-Transport-Security: max-age=31536000\r\n< Via: 1.1 vegur\r\n<\r\n* Ignoring the response-body\r\n{ [5 bytes data]\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r\n* Connection #0 to host crates.io left intact\r\n* Issue another request to this URL: 'https://crates-io.s3-us-west-1.amazonaws.com/crates/url/url-0.5.5.crate'\r\n* timeout on name lookup is not supported\r\n*   Trying 54.231.236.0...\r\n* Connected to crates-io.s3-us-west-1.amazonaws.com (54.231.236.0) port 443 (#1)\r\n* ALPN, offering http/1.1\r\n* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH\r\n* successfully set certificate verify locations:\r\n*   CAfile: C:/msys64/mingw64/ssl/certs/ca-bundle.crt\r\n  CApath: none\r\n* TLSv1.2 (OUT), TLS header, Certificate Status (22):\r\n} [5 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Client hello (1):\r\n} [512 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server hello (2):\r\n{ [89 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Certificate (11):\r\n{ [2544 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server key exchange (12):\r\n{ [333 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Server finished (14):\r\n{ [4 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):\r\n} [70 bytes data]\r\n* TLSv1.2 (OUT), TLS change cipher, Client hello (1):\r\n} [1 bytes data]\r\n* TLSv1.2 (OUT), TLS handshake, Finished (20):\r\n} [16 bytes data]\r\n* TLSv1.2 (IN), TLS change cipher, Client hello (1):\r\n{ [1 bytes data]\r\n* TLSv1.2 (IN), TLS handshake, Finished (20):\r\n{ [16 bytes data]\r\n* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-SHA\r\n* ALPN, server did not agree to a protocol\r\n* Server certificate:\r\n*        subject: C=US; ST=Washington; L=Seattle; O=Amazon.com Inc.; CN=*.s3-us-west-1.amazonaws.com\r\n*        start date: Dec  8 12:05:08 2015 GMT\r\n*        expire date: Sep 21 12:00:00 2016 GMT\r\n*        subjectAltName: crates-io.s3-us-west-1.amazonaws.com matched\r\n*        issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2\r\n*        SSL certificate verify ok.\r\n} [5 bytes data]\r\n> GET /crates/url/url-0.5.5.crate HTTP/1.1\r\n> Host: crates-io.s3-us-west-1.amazonaws.com\r\n> User-Agent: curl/7.47.1\r\n> Accept: */*\r\n>\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0{ [5 bytes data]\r\n< HTTP/1.1 200 OK\r\n< x-amz-id-2: bLCVbUt7EAiyHdocFASXq5cvWafLdRMqsy26ipTQLL9JtqAuav3qe4WyCc5gv4LPOajZ9XbaWWc=\r\n< x-amz-request-id: 13BCB59D959EBB6A\r\n< Date: Thu, 10 Mar 2016 03:58:49 GMT\r\n< Last-Modified: Wed, 10 Feb 2016 15:54:33 GMT\r\n< ETag: \"94ea7a572a87cab3383bc45f9024a730\"\r\n< Accept-Ranges: bytes\r\n< Content-Type: application/x-tar\r\n< Content-Length: 281821\r\n< Server: AmazonS3\r\n<\r\n{ [5 bytes data]\r\n100  275k  100  275k    0     0   212k      0  0:00:01  0:00:01 --:--:--  764k\r\n* Connection #1 to host crates-io.s3-us-west-1.amazonaws.com left intact\r\n```\r\nI even tried to disable the Windows firewall completely, still with the same result (also that would not explain why curl works and cargo does not). \r\n\r\nI would appreciate if someone could name a few options to get a more verbose output from cargo (more verbose than `--verbose`)."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/237477889","html_url":"https://github.com/rust-lang/cargo/issues/2464#issuecomment-237477889","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2464","id":237477889,"user":{"login":"pffang","id":8113112,"avatar_url":"https://avatars.githubusercontent.com/u/8113112?v=3","gravatar_id":"","url":"https://api.github.com/users/pffang","html_url":"https://github.com/pffang","followers_url":"https://api.github.com/users/pffang/followers","following_url":"https://api.github.com/users/pffang/following{/other_user}","gists_url":"https://api.github.com/users/pffang/gists{/gist_id}","starred_url":"https://api.github.com/users/pffang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pffang/subscriptions","organizations_url":"https://api.github.com/users/pffang/orgs","repos_url":"https://api.github.com/users/pffang/repos","events_url":"https://api.github.com/users/pffang/events{/privacy}","received_events_url":"https://api.github.com/users/pffang/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T07:44:23Z","updated_at":"2016-08-04T07:44:23Z","body":"Sadly, http.cainfo doesn't work on Windows MSYS2."}}
{"actor":{"display_login":"pffang"}}