Windows: sign-in fails behind TLS inspection because the Schannel revocation check is strict (CRYPT_E_NO_REVOCATION_CHECK)
Mantenedores costumam responder em até 3 dias
@AustinBenoit já está trabalhando nisso.
Desde 13/11/2026.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- cmake, cpp, firebase
- Domínio
- networking
Direção de pesquisa
Start in app/rest/transport_curl.cc, in BackgroundTransportCurl::PerformBackground, where CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST are set, and confirm no CURLOPT_SSL_OPTIONS call exists. Check the curl version pinned in CMakeLists.txt and cmake/external/curl.cmake to confirm CURLSSLOPT_REVOKE_BEST_EFFORT is available. Done means a Windows-only option is set without changing peer or host verification, and a test or manual check against a revocation-unavailable chain passes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
On Windows, sign-in through the C++ SDK fails on company networks that inspect TLS. We hit this through FlutterFire (firebase_core 4.15.2, which downloads firebase_cpp_sdk_windows_13.13.1.zip). signInWithCredential and signInWithEmailAndPassword both return [firebase_auth/unknown-error] An internal error has occurred, while browsers and the rest of our app reach Google from the same machine without trouble.
One affected user traced it on their machine. Schannel returns CRYPT_E_NO_REVOCATION_CHECK (0x80092012). Their company's inspection CA is trusted in the Windows root store, but the leaf certificates it issues carry no CRL distribution point and no OCSP URL, so the revocation check can't run. This is the fifth separate report we've had since June, and flutterfire#12725 looks like the same failure.
The REST transport builds libcurl with Schannel on Windows (CMAKE_USE_SCHANNEL ON in CMakeLists.txt at v13.13.1, CURL_USE_SCHANNEL ON on main). BackgroundTransportCurl::PerformBackground in app/rest/transport_curl.cc sets CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST and never sets CURLOPT_SSL_OPTIONS. With curl's Schannel backend that makes a revocation check that can't be completed fatal. Browsers treat that case as a soft failure, which is why they keep working on these networks. As far as I can tell main is the same: I found no CURLOPT_SSL_OPTIONS there either.
Would you take a change that sets CURLSSLOPT_REVOKE_BEST_EFFORT on Windows, next to the two existing verify lines?
#if defined(_WIN32)
CheckOk(curl_easy_setopt(curl_, CURLOPT_SSL_OPTIONS,
static_cast<long>(CURLSSLOPT_REVOKE_BEST_EFFORT)),
"ssl options");
#endif
Peer and host verification stay on, and a certificate that is checked and found revoked still fails. The only case that changes is the one where revocation status can't be obtained. The option needs curl 7.70 or later. v13.13.1 bundles 7.73.0 and main bundles 8.23.0 (cmake/external/curl.cmake).
I can open the PR if you're fine with this approach. The user who traced the error has offered to test a build.
- Linguagem predominante
- C++
- Estrelas
- 326
- Forks
- 137
- Merge médio
- 3d 8h
- PRs com merge (30d)
- 17
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de firebase/firebase-cpp-sdk
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
firebase/firebase-cpp-sdk#1966 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
firebase/firebase-cpp-sdk#1954 ·
Mantenedores costumam responder em até 3 dias
-
[FR] Support desktop Linux on aarch64/arm (#error Unknown Linux architecture in app_common.cc)Abertanew type: question
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
firebase/firebase-cpp-sdk#1926 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
firebase/firebase-cpp-sdk#1905 · 2 comentários ·
Mantenedores costumam responder em até 3 dias
-
[Database][Android] SIGSEGV in Database::DeleteInternal when embedded bridge-class init fails; FindClassInFiles passes JNI-form names to loadClass on AndroidTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 55/100
firebase/firebase-cpp-sdk#1936 · 4 comentários ·
Mantenedores costumam responder em até 3 dias
Todas as issues de firebase/firebase-cpp-sdk
Issues semelhantes
-
sec_touch: a corrupted panel ACK ends a GET as malformed while its data frame is still comingAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
distante/esphome-components#50 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
-
feat
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia