lehttp_overrides
안드로이드 7.1.1 이하 버전에서 Let's Encrypt SSL 인증서 문제를 해결하기 위한 플러터 패키지
안드로이드 7.1.1 이하 버전에서 Let's Encrypt SSL 인증서 문제를 해결하기 위한 플러터 패키지
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Flutter package to resolve Let's Encrypt SSL certificate problems with Android 7.1.1 and below
More information here (Italian)
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.
의존성 목록 3 개
{"sdk":"flutter"}^5.1.2^2.0.1사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗