搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.3

lehttp_overrides

一個用於解決 Android 7.1.1 及以下版本 Let's Encrypt SSL 憑證問題的 Flutter 套件

AndroidiOSmacOSWindowsLinux
近 30 天下載
2130
喜歡數
27
Pub 分數
140

安裝套件

flutter pub add lehttp_overrides

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個專為解決 Android 7.1.1 及更早版本上 Let's Encrypt 所引起的 SSL 憑證問題而設計的 Flutter 套件。它提供必要的 HTTP 覆蓋,以確保在較舊的 Android 裝置上安全連線功能仍能正常運作。此套件對於目標為遺留 Android 系統的應用程式特別實用,因為在這些系統中,由於信任儲存區過時,憑證驗證會失敗。它可與現有的 HTTP 客戶端無縫整合,設定需求極少。由 netfarm.it 維護,支援包括 Android、iOS、macOS、Windows 和 Linux 在內的多個平台。

適用情境

  • 修復 Android 7.1.1 及以下版本的 SSL 錯誤
  • 在舊版 Android 設備上啟用安全 API 呼叫
  • 確保與 Let's Encrypt 證書的相容性
  • 在企業或面向公眾的應用中支援較舊的裝置
  • 跨平台版本保持 HTTPS 連接

主要特色

  • Android 7.1.1 的內建 SSL 憑證修復
  • 所需設定最少
  • 跨平台支援
  • 與標準 HTTP 客戶端相容
  • 開源且持續維護

適合對象

  • 面向較舊 Android 設備的開發者
  • 在舊系統上需要可靠HTTPS的應用程式
  • 使用 Let's Encrypt 證書的項目
  • 維護向後相容性的團隊
  • 具有多樣化設備機隊的企业應用

使用建議

  • Android 8.0 及以上版本不需要
  • 可能需要在較舊的設備上進行額外測試
  • 僅限 Android 上的 SSL 相關問題
  • 不會直接影響iOS或其他平台
  • 如果需要,最好與正確的憑證固定結合使用

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

lehttp_overrides

A Flutter package to resolve Let's Encrypt SSL certificate problems with Android 7.1.1 and below

More information here (Italian)

Getting Started

To enable the fix you need to add this line at the beginning of your project:

import 'package:lehttp_overrides/lehttp_overrides.dart';

void main() {
  if (Platform.isAndroid) {
    HttpOverrides.global = LEHttpOverrides();
  }
  runApp(const MyApp());
}

This works if you are using ISRG Root X1 certificate path by adding ISRG Root X1 CA to certificate store.

This is harmless on Android > 7.1.1 because the system already has it.

An optional parameter of the constructor allowExpiredDSTX3 (defaults: false) allows to accept as valid the DST Root CA X3 expired certificate. OpenSSL >= 1.1 should not trigger this check, but old Android versions still need it.

My suggestion is to leave this disabled and use ISRG Root X1 certiicate path.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。