# Xcode9.2: curl: (35) SSL peer handshake failed

**URL:** <https://travis-ci.community/t/xcode9-2-curl-35-ssl-peer-handshake-failed/3154>\
**Category:** macOS\
**Tags:** bug\
**Created:** [April 24, 2019, 1:21pm UTC](https://travis-ci.community/t/xcode9-2-curl-35-ssl-peer-handshake-failed/3154 "2019-04-24T13:21:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![realcr](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/realcr/32/1637_2.png) [@realcr](https://travis-ci.community/u/realcr)\
**Post date:** [April 24, 2019, 1:21pm UTC](https://travis-ci.community/t/xcode9-2-curl-35-ssl-peer-handshake-failed/3154/1 "2019-04-24T13:21:08Z")

</div>

Hey, I am trying to build a Rust project on macOS. It seems like the part of “Installing Rust” fails with an SSL peer handshake failure for curl. I am pretty sure I didn’t change any configuration. This problem began showing up today.

A link for the failed job: [https://travis-ci.com/freedomlayer/offst/jobs/195238736](https://travis-ci.com/freedomlayer/offst/jobs/195238736)

Relevant error lines:

```bash
Installing Rust
0.26s$ curl -sSf https://build.travis-ci.com/files/rustup-init.sh | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
info: downloading installer
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init /var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/tmp.Xn8zVhqx/rustup-init
0.36s$ curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
info: downloading installer
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init /var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/tmp.esNfVYcZ/rustup-init
The command "curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y" failed and exited with 1 during .

```

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [April 24, 2019, 1:31pm UTC](https://travis-ci.community/t/xcode9-2-curl-35-ssl-peer-handshake-failed/3154/2 "2019-04-24T13:31:12Z")

</div>

Please try a newer image.

---

<div class="post-metadata">

**Author:** ![realcr](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/realcr/32/1637_2.png) [@realcr](https://travis-ci.community/u/realcr)\
**Post date:** [April 24, 2019, 3:43pm UTC](https://travis-ci.community/t/xcode9-2-curl-35-ssl-peer-handshake-failed/3154/3 "2019-04-24T15:43:28Z")

</div>

Upgrading to xcode9.4.1 solved the issue. Thanks!
