Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add logs

Neeraj Gupta2e53dcca0027
diff --git a/auth/lib/core/win_http_client.dart b/auth/lib/core/win_http_client.dart
index 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 from
https://github.com/realm/realm-dart/blob/main/packages/realm_dart/lib/src/handles/native/default_client.dart
@@ -49,8 +51,11 @@ Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5
context.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 here
if (e.osError?.message.contains("CERT_ALREADY_IN_HASH_TABLE") != true) {
rethrow;