Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable SSL certificate check for self-signed certificates #1033

Open
kormaz5 opened this issue Nov 13, 2024 · 1 comment
Open

Disable SSL certificate check for self-signed certificates #1033

kormaz5 opened this issue Nov 13, 2024 · 1 comment

Comments

@kormaz5
Copy link

kormaz5 commented Nov 13, 2024

Hi all,

It seems that Android removed support for systemwide self signed certificates. This means that seadroid cannot be used with them.
What is needed is an option, like the one currently available in the Desktop clients, that allows you to disable the SSL certificate checks, or something similar. A better alternative would be to allow to add the self-signed certificate to be choosen in the app, so that only that one would be considered valid.

At this moment you can connect to the server but the application refuses to download the files, making Seadroid completely useless.

With the Seadroid version in the google play store you get: “failed to download file”.
With the In the F-Droid version, I also get an extra message: “not trusted SSL server”

Any workaround to use Seadroid anyway would be much appreciated, thanks.

@kormaz5
Copy link
Author

kormaz5 commented Dec 1, 2024

I modified the application code, removing all the SSL checks and it kind of starts the download now.

I'm still getting issue about tokens being null and issues about WRITE_EXTERNAL_STORAGE not being allowed or something like that. I gave the app all permission ... checking on gpt I got:

Android 11 (API level 30) and Above WRITE_EXTERNAL_STORAGE is deprecated and has no effect. Apps are encouraged to use: MediaStore API for managing media files. Scoped storage for app-specific directories (getExternalFilesDir()). MANAGE_EXTERNAL_STORAGE permission (for apps that need broader file access). This permission grants access to most of the device's storage but is only meant for specific use cases and requires justification during app submission to Google Play. 4. Alternatives to WRITE_EXTERNAL_STORAGE App-Specific Storage: Use getExternalFilesDir() or getFilesDir() for app-specific files. These do not require permissions. MediaStore API: For accessing or storing media files like photos, videos, or audio, use this API. Storage Access Framework (SAF): Allows the user to select files or directories that the app can access. MANAGE_EXTERNAL_STORAGE: For broader access, you can request this permission, but it requires strong justification and adherence to Play Store policies.

Anyone with some hint?

@kormaz5 kormaz5 changed the title [Feature-request] Disable SSL certificate check for self-signed certificates Disable SSL certificate check for self-signed certificates Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant