Windows: sign-in fails behind TLS inspection because the Schannel revocation check is strict (CRYPT_E_NO_REVOCATION_CHECK)
Les mainteneurs répondent en général sous 3 jours
@AustinBenoit y travaille déjà.
Depuis le 13/11/2026.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 42/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- cmake, cpp, firebase
- Domaine
- networking
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- C++
- Étoiles
- 326
- Forks
- 137
- Merge moyen
- 3 j 8 h
- PR mergées (30 j)
- 17
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de firebase/firebase-cpp-sdk
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
firebase/firebase-cpp-sdk#1966 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
firebase/firebase-cpp-sdk#1954 ·
Les mainteneurs répondent en général sous 3 jours
-
[FR] Support desktop Linux on aarch64/arm (#error Unknown Linux architecture in app_common.cc)Ouvertenew type: question
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
firebase/firebase-cpp-sdk#1926 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
firebase/firebase-cpp-sdk#1905 · 2 commentaires ·
Les mainteneurs répondent en général sous 3 jours
-
[Database][Android] SIGSEGV in Database::DeleteInternal when embedded bridge-class init fails; FindClassInFiles passes JNI-form names to loadClass on AndroidPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 3/5 Une demi-journée Accessibilité débutants 55/100
firebase/firebase-cpp-sdk#1936 · 4 commentaires ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de firebase/firebase-cpp-sdk
Issues similaires
-
sec_touch: a corrupted panel ACK ends a GET as malformed while its data frame is still comingOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
distante/esphome-components#50 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[Windows] Match files ≥ 2 GiB fail to load: stlplus is_file() uses 32-bit stat() (EOVERFLOW)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
-
feat
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 1 jour