ssl_pining_checking 0.0.3 copy "ssl_pining_checking: ^0.0.3" to clipboard
ssl_pining_checking: ^0.0.3 copied to clipboard

A new Flutter package ssl_pinning_check.

  • Create assets/certification folder put the "

  • just right click and reName extension .cer to pem

  • By Akhilesh Goswami check out this video https://youtu.be/7ZrpFIZ5J1Y

    add in pubspec.yaml add this line assets:

    • assets/certification/
  • Full runnable sample: see example/example.dart

  • Example

import 'dart:convert'; import 'package:http/http.dart' as http; import 'package:ssl_pining_checking/ssl_pining_checking.dart';

late http.Client client;

@override void onInit() async { client = await SSLPiningCheck( certificateFilePath: 'assets/certification/client.pem', ).getSSLPiningClient();

super.onInit();

}

Calling Api through client

final http.Response response = await client.post( Uri.parse(url), headers: <String, String>{ 'Content-Type': 'application/json', 'Authorization': 'Token $token', }, body: json.encode(data), );

Close client when done (e.g. in dispose):

client.close();

4
likes
140
points
103
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A new Flutter package ssl_pinning_check.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on ssl_pining_checking