TeamAmaze / TeamAmaze/AmazeFileManager

Export FTP server CA cert for client import

Open
#2,492 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-FTP Issue-Feature Issue-Task (low)
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
Currently the FTP server is using our own self-signed cert when running in SSL mode. There is no way to allow end user clients to import the certificate authority's cert as we don't provide an easy way for them to access it. This makes few FTP clients that allow identifying the cert's CA on connection, e.g. FileZilla.

Describe the solution you'd like
Allow end users to have access to the CA's certificate.

An easiest implementation would be exporting the CA cert to the device's internal storage, then allow end users to copy and import it on their own.

We are not doing this automatically; perhaps a button at FtpServerFragment to export it on demand, plus a Toast or alert dialog prompting the user where to find the CA cert.

Additional context
No direct File I/O please, but SAF even writing to device's internal storage (meaning the MMC for instance, not meaning the app's own internal, protected storage as coined by Android)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in FtpServerFragment and trace how the FTP server's self-signed CA certificate is generated or stored. Use Android's Storage Access Framework rather than direct file I/O, and consider how the UI should tell users where the exported certificate was saved. Done means users can export the CA certificate on demand and import it into clients such as FileZilla.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.