Provision a CA certificate and 802.1X Wi-Fi profiles

Abierto
#199 1 comentario 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, java
Área
api, mobile

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Java
Estrellas
44
Forks
25
Merge medio
1 d 13 h
PR fusionados (30 d)
80

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MDMesh-app/MDMesh

Todos los issues de MDMesh-app/MDMesh

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.