expo build:ios fails

Error message:
Authentication with Apple Developer Portal failed!

Reason: Unknown reason, raw: “SSL_connect returned=1 errno=0 state=error: certificate verify failed”
Error: Reason: Unknown reason, raw: “SSL_connect returned=1 errno=0 state=error: certificate verify failed”
at runAction (/expo-cli@3.2.3/src/commands/build/ios/appleApi/fastlane.js:24:17)
at process._tickCallback (internal/process/next_tick.js:68:7)

Enviroment:
Expo CLI 3.2.3 environment info:
System:
OS: macOS Sierra 10.12.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.16.3 - /usr/local/bin/node
Yarn: 1.7.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
expo: ^37.0.0 => 37.0.8
react: 16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz => 0.61.4
npmGlobalPackages:
expo-cli: 3.20.9