Provision a CA certificate and 802.1X Wi-Fi profiles

Aperta
#199 1 commento 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, java
Ambito
api, mobile

Direzione di ricerca

The payload names no files, so start by finding where the configuration schema and the Wi-Fi restriction options live in the server REST API and the Android agent. Read how the agent applies current Wi-Fi settings and how attached files are downloaded and SHA-256 checked. Done would mean a configuration can carry a CA certificate that is installed with DevicePolicyManager.installCaCert and removed on exit, and an EAP network that is applied through WifiEnterpriseConfig, with the existing restriction options unchanged. This is design-heavy, so agree the schema with maintainers first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Area

Server / REST API

The problem

The Wi-Fi settings only allow restricting Wi-Fi, and the QR carries a single PSK network for setup. There is no way to push a root CA or an EAP Wi-Fi profile. Use case: corporate Wi-Fi with RADIUS where the phone shows a certificate warning unless our root CA is trusted. Request: (a) install CA certificates through DevicePolicyManager.installCaCert from a file attached to the configuration; (b) Wi-Fi network entries with EAP method, CA certificate, identity/domain (WifiEnterpriseConfig). Note from testing with another MDM agent: a CA installed with installCaCert was trusted by apps/browsers but was not offered in the Wi-Fi EAP CA picker (Android 11+), so (b) probably needs to set the CA directly in the Wi-Fi config.

Proposed solution

(a) Certificates: a "Certificates" section in the configuration, where a PEM/DER file is attached (downloaded and checked by SHA-256 like APKs). The agent installs it with DevicePolicyManager.installCaCert, reports the result per device, and removes it when it leaves the configuration (uninstallCaCert). Optionally a client certificate/PKCS#12 via installKeyPair for EAP-TLS.
(b) Wi-Fi: a list of networks in the configuration (SSID, security: PSK or EAP; EAP method PEAP/TTLS/TLS, phase-2, identity, domain suffix match, and a reference to a CA from (a)). Apply them with the platform Wi-Fi APIs available to a Device Owner, setting the CA directly in WifiEnterpriseConfig, because a CA installed with installCaCert is not offered in the Wi-Fi EAP CA picker on Android 11+ in our tests.
(c) Keep the existing "restrict Wi-Fi" options unchanged.

Alternatives considered

No response

Before submitting
  • I searched existing issues and discussions for the same idea.
Lingua principale
Java
Stelle
44
Fork
25
Merge medio
1g 13h
PR unite (30g)
80

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MDMesh-app/MDMesh

Tutte le issue di MDMesh-app/MDMesh

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.