$ EXPO_DEBUG=true expo build:ios
Checking if there is a build in progress...
Please enter your Apple Developer Program account credentials. These credentials are needed to manage certificates, keys and provisioning profiles in your Apple Developer account.
The password is only used to authenticate with Apple and never stored.
? Apple ID: xxxxxxxx@xxxxxxxx
? Password (for ryo_s@ichigen.me): [hidden]
Trying to authenticate with Apple Developer Portal...
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.11.5/src/appleApi/fastlane.ts:28:17)
at processTicksAndRejections (internal/process/task_queues.js:89:5)
at Object.authenticate (/expo-cli@3.11.5/src/appleApi/authenticate.ts:46:40)
at IOSBuilder.getAppleCtx (/expo-cli@3.11.5/src/commands/build/ios/IOSBuilder.js:47:23)
at IOSBuilder.produceMissingCredentials (/expo-cli@3.11.5/src/commands/build/ios/IOSBuilder.js:123:22)
at IOSBuilder.prepareCredentials (/expo-cli@3.11.5/src/commands/build/ios/IOSBuilder.js:65:7)
at IOSBuilder.run (/expo-cli@3.11.5/src/commands/build/ios/IOSBuilder.js:19:7)
at IOSBuilder.command (/expo-cli@3.11.5/src/commands/build/BaseBuilder.js:55:7)
at Command.<anonymous> (/expo-cli@3.11.5/src/exp.ts:81:7)
I’m having a similar issue, in my case I can run the build command, but when I run the expo upload:ios I’m getting the following error:
Available session is not valid any more. Continuing with normal login.
Failed to upload the standalone app to the app store.
SSL_connect returned=1 errno=0 state=error: certificate verify failed
Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed
at runFastlaneAsync (/expo-cli@3.11.5/src/commands/upload/utils.ts:79:11)
at process._tickCallback (internal/process/next_tick.js:68:7)
Trying to authenticate with Apple Developer Portal...
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.11.5/src/appleApi/fastlane.ts:28:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.authenticate (/expo-cli@3.11.5/src/appleApi/authenticate.ts
:46:40)
at IOSBuilder.getAppleCtx (/expo-cli@3.11.5/src/commands/build/ios/IO
SBuilder.js:47:23)
at IOSBuilder.produceMissingCredentials (/expo-cli@3.11.5/src/command
s/build/ios/IOSBuilder.js:123:22)
at IOSBuilder.prepareCredentials (/expo-cli@3.11.5/src/commands/build
/ios/IOSBuilder.js:65:7)
at IOSBuilder.run (/expo-cli@3.11.5/src/commands/build/ios/IOSBuilder
.js:19:7)
at IOSBuilder.command (/expo-cli@3.11.5/src/commands/build/BaseBuilde
r.js:55:7)
at Command.<ano
Same also having this issue today was working fine for past couple of months
Trying to authenticate with Apple Developer Portal…
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 processTicksAndRejections (internal/process/task_queues.js:93:5)
at Object.authenticate (/expo-cli@3.2.3/src/commands/build/ios/appleApi/authenticate.js:15:40)
at IOSBuilder.getAppleCtx (/expo-cli@3.2.3/src/commands/build/ios/IOSBuilder.js:47:24)
at IOSBuilder.produceMissingCredentials (/expo-cli@3.2.3/src/commands/build/ios/IOSBuilder.js:123:22)
at IOSBuilder.prepareCredentials (/expo-cli@3.2.3/src/commands/build/ios/IOSBuilder.js:66:7)
at IOSBuilder.run (/expo-cli@3.2.3/src/commands/build/ios/IOSBuilder.js:19:7)
at IOSBuilder.command (/expo-cli@3.2.3/src/commands/build/BaseBuilder.js:54:7)
at Command. (/expo-cli@3.2.3/src/exp.ts:81:7)
The problem is that the ca cert we bundle with our version of ruby within expo-cli is expired. we havent pushed out an official fix yet, but here’s a hack you can do to unblock yourself:
# go into the `node_modules` of your expo-cli
cd `npm root -g`/expo-cli/node_modules/@expo/traveling-fastlane-darwin/traveling-fastlane-1.10.0-osx/lib/ruby/lib
# verify that the ca-bundle.crt is actually expired
openssl x509 -enddate -noout -in ca-bundle.crt
# directory of your openssl cert_file
cert_file="$( openssl version -d | awk -F'"' '{print $2}' )/cert.pem"
# backup expired crt
cp ca-bundle.crt ca-bundle.crt.bak
# copy your openssl cert file
cp $cert_file ca-bundle.crt
@quinlanj
The workaround did let me run expo:build:os, but now the app won’t make http requests on the simulator. I assume that’s related to the workaround? Here’s the error I got:
Error: Request failed with status code 400
at createError (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11)
at IncomingMessage.emit (events.js:208:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:77:11)
i can’t do expo build: ios from my app yesterday. I get an SSL certificate validation error. my expo-cli version is up-to-date. Previously I published about 1 year ago on expo again, I’m updating my application from time to time I did not have a problem with build. What is the solution by expo? I don’t understand why it happened like this