1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(mobile): client TLS on ios (#11415)

This commit is contained in:
Alex 2024-07-28 17:32:53 -05:00 committed by GitHub
parent 0beeb61f5c
commit ddc4d2f927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,9 +25,7 @@ class HttpSSLCertOverride extends HttpOverrides {
try {
_log.info("Setting client certificate");
ctx.usePrivateKeyBytes(cert.data, password: cert.password);
if (!Platform.isIOS) {
ctx.useCertificateChainBytes(cert.data, password: cert.password);
}
ctx.useCertificateChainBytes(cert.data, password: cert.password);
} catch (e) {
_log.severe("Failed to set SSL client cert: $e");
return false;