lehttp_overrides
1.0.3, released 3 years ago by netfarm.it
Resolves Let's Encrypt SSL certificate problems on Android 7.1.1 and below.
What it does
It overrides global HTTP configurations to add the ISRG Root X1 CA to the certificate store, fixing SSL issues on older Android versions. An optional parameter also allows accepting the expired DST Root CA X3 certificate.
AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- Your app targets Android 7.1.1 or lower and uses Let's Encrypt SSL certificates
- You need a quick global fix for SSL handshake errors on older devices
Skip it when
- Your app does not support Android 7.1.1 or lower
- You are using self-signed certificates or CAs other than Let's Encrypt
Strengths
- Harmless on Android versions greater than 7.1.1
- Simple one-line setup in the main function
Weaknesses
- Limited scope restricted to specific Android versions and Let's Encrypt certificates
- Relies on global HTTP overrides
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Add the initialization line with LEHttpOverrides to the beginning of your project's main function.
import 'package:lehttp_overrides/lehttp_overrides.dart';
void main() {
if (Platform.isAndroid) {
HttpOverrides.global = LEHttpOverrides();
}
runApp(const MyApp());
}Alternatives
Packages that do the same job and could replace lehttp_overrides.
- http_security_pinning
SPKI SHA-256 TLS certificate pinning for Flutter with a drop-in HttpClient.
65Compare
Works with
Packages commonly used together with lehttp_overrides: ones it builds on, ones built on it, and its own family.