π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add logs
Neeraj Gupta2e53dcca0027
diff --git a/auth/lib/core/win_http_client.dart b/auth/lib/core/win_http_client.dartindex a193af1174..61072d47a0 100644--- a/auth/lib/core/win_http_client.dart+++ b/auth/lib/core/win_http_client.dart@@ -1,6 +1,8 @@import 'dart:convert';import 'dart:io';+import 'package:flutter/foundation.dart';+/*Reference fromhttps://github.com/realm/realm-dart/blob/main/packages/realm_dart/lib/src/handles/native/default_client.dart@@ -49,8 +51,11 @@ Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5context.setTrustedCertificatesBytes(const AsciiEncoder().convert(isrgRootX1CertPEM),);+ debugPrint("Certificate added to trusted certificates");return HttpClient(context: context);} on TlsException catch (e) {+ debugPrint(+ "Error adding certificate to trusted certificates: ${e.osError?.message}");// certificate is already trusted. Nothing to do hereif (e.osError?.message.contains("CERT_ALREADY_IN_HASH_TABLE") != true) {rethrow;