Provision a CA certificate and 802.1X Wi-Fi profiles

オープン
#199 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, java
領域
api, mobile

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Java
スター
44
フォーク
25
平均マージ
1日 13時間
マージ済み PR(30日)
80

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MDMesh-app/MDMesh のほかの issue

MDMesh-app/MDMesh の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。