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

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

Relevant error lines:

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 .

Please try a newer image.

Upgrading to xcode9.4.1 solved the issue. Thanks!

Imprint