Dovydas
03/22/2025, 8:20 PMDovydas
03/23/2025, 2:19 PMDovydas
03/23/2025, 2:34 PM<http://javax.net|javax.net>.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
There is something wrong with the certificates of this domain: <http://sms.eursc.eu|sms.eursc.eu>
In the old flutter version of my app, I just downloaded the certificate from chrome and added it to the app like so:
ByteData data = await PlatformAssetBundle().load('assets/ca/eursc-eu.pem'); SecurityContext.defaultContext.setTrustedCertificatesBytes(data.buffer.asUint8List());
But now I can't find a simple way to do this with ktor on iOS and Android.Dovydas
03/23/2025, 3:05 PMDovydas
03/23/2025, 3:11 PMDovydas
03/23/2025, 3:56 PM