BenoitDuffez / AndroidCupsPrint

Port of cups4j to Android. Allows wireless printing from any Android device to any CUPS-enabled print server or network printer.
https://benoitduffez.github.io/AndroidCupsPrint
GNU Lesser General Public License v3.0
233 stars 68 forks source link

Cannot figure how to trust user-provided trusted certificates #195

Open bgstack15 opened 4 months ago

bgstack15 commented 4 months ago

This application allows you to manually approve a certificate, but it does not check the user-installed trusted root certificates.

I tried a custom build with the same type of code as demonstrated in another app: https://github.com/home-assistant/android/pull/194/files, but it does not fix the problem. I even tried installing to my trusted root certificate list the exact leaf cert of my CUPS server, and it still failed.

I couldn't make sense of app/src/main/java/io/github/benoitduffez/cupsprint/ssl/AdditionalKeyManager.kt and how to benefit from the knowledge on stackoverflow. Can anybody else find how to do this?