If you’re simply looking for a tutorial on how to connect your device to the network securely, go to the Tutorials section.

Why this article?

Android recently got an update which prevents you from connecting insecurely to WPA Enterprise networks. The IT staff for SRVUSD firmly insisted that it is now simply impossible to connect an Android phone to the SRVUSD-BYOD network.

I didn’t believe them, so I brought my laptop to school, used Wireshark to dump the WPA handshake, and found the certificate information that is needed to connect securely.

I am writing this tutorial because the district’s own IT staff can’t help students figure this out, so hopefully I can.

Network info

The network uses WPA Enterprise with WPA-PEAP and MSCHAPv2 for authentication. The root CA certificate is provided in the Certificates section.

Connection details

NameValue
Security modeWPA/WPA2 Enterprise
AuthenticationProtected EAP (PEAP)
CA certificatesee Certificates section
Domainsrvusd.k12.ca.us (or possibly RADIUS-DC2.srvusd.k12.ca.us)
Inner (Phase 2) AuthenticationMSCHAPv2
Identity (username)STUDENTS\######, where ###### is your student ID number
PasswordYour district password

Tutorials

The tutorials provided here detail how to connect to the SRVUSD-BYOD network securely (i.e. with certificate verification). There are also ways to connect insecurely (i.e. without certificate verification), but that’s insecure, so you shouldn’t do that.

Tutorials are provided for the following OSes:

Android

Note: the steps below are for stock Android. If your phone uses modified Android (like some Samsung phones), the exact steps may differ. The general process will stay consistent, though.

The process to connect on Android consists of two main steps: (1) install the SRVUSD Root CA certificate, and (2) configure the network.

1. Install the certificate

Important note: This only installs the SRVUSD Root CA certificate for verifying Wi-Fi networks. It cannot verify websites, so it does not compromise the security of your device.

  1. First, download the SRVUSD Root CA Certificate. Make sure the file ends with .crt or .cer. Android might not recognize it otherwise.
    (If you don’t trust me, download and extract the certificate from srvusd.net/pki)

  2. Navigate to Wi-Fi Preferences. This can be found in Settings > Network & internet > Wi-Fi > Wi-Fi Preferences.

  3. Select Advanced > Install certificates.

  4. Select the certificate file. You can name it whatever you want. I simply named it SRVUSD-RootCA.

2. Configure the Wi-Fi network

  1. Go back to the Wi-Fi settings and select the SRVUSD-BYOD network.
    (Or add a network with the SSID SRVUSD-BYOD and select WPA/WPA2/WPA3-Enterprise security.)

  2. Enter the details accordingly:

Field nameValue
EAP methodPEAP
Phase 2 authenticationMSCHAPV2
CA certificateSelect the name of the certificate you just installed
Online Certificate StatusEither “Do not validate” or “Request certificate status”
Domainsrvusd.k12.ca.us
Identitystudents\######, where ###### is your student ID number
Anonymous identityLeave blank
PasswordYour district login password
  1. Press Save (obviously)

Linux (with NetworkManager)

If using the GUI connection editor (nm-connection-editor), add a new Wi-Fi network and fill out the fields with the information provided above. See the screenshots below for details.

Instead of using the GUI connection manager, you can use the connection file provided below.

For the CA certificate, download (or create) the certificate file. Then select that file as the CA certificate in the connection editor, or provide the path in the connection configuration file.

Configuration file

Note: lines that are not relevant to the network but are still recommended (e.g. security/privacy settings) are commented out.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
## /etc/NetworkManager/system-connections/SRVUSD-BYOD.nmconnection

[connection]
id=SRVUSD-BYOD
type=wifi

[wifi]
mode=infrastructure
ssid=SRVUSD-BYOD

# Randomize MAC address (limits device tracking)
#cloned-mac-address=random

[wifi-security]
key-mgmt=wpa-eap

[802-1x]
ca-cert=<path to SRVUSD CA certificate>
domain-suffix-match=RADIUS-DC2.srvusd.k12.ca.us

eap=peap;
phase2-auth=mschapv2

identity=students\\######
# Password flags:
#   1 - Save password in user agent (not system-wide)
password-flags=1

[ipv4]
method=auto

[ipv6]
method=auto
#addr-gen-mode=stable-privacy

Screenshots

Wi-Fi network settings
Wi-Fi Security network settings

Certificates

Below are the three PEM-encoded X.509 certificates in the trust chain for the SRVUSD-BYOD network.

Note: the URLs provided in the certificates (e.g. CRL distribution points) no longer exist. Thus you should not enable CRL or OCSP checking when using these certificates.

AP Certificate

Download

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
-----BEGIN CERTIFICATE-----
MIIH1jCCBb6gAwIBAgITJAA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UDtuKYs6KA
n+GD2IeN2Z5ee+u3kjl6VZsHXN7EHVdIAKMEalzxMc+yuHv/7uhCb6LIKuXfX2bX
JZV54h8waVUmfygOuMLYTM/wdAdi1rxYUuQOXzDUOeYdtzQSGK3Nnpe0XBBILO/Z
xJAitpTXYVOaPVaDYLpV0sL9Zf85RKWiRRRHMhaEi96bw46lNTfjK72YoR/c70qA
kNMLAjuJX53D3qs2TuepxK4kr6HrFk+c4jZSe0P9eNswujNVpGK63Y0tOtrmZDPa
kd+cli0Ifu/8XsaD1Zv+g0qQh/w+35HNTzJidXim6d9kKotSpzqicHldtVo3wkR5
QJvENa6Y81t5vrwpg6yt8OTQxO2g0gUDYc5FQp1zqVKOwt5TeawLc4hJ1PnnCQhY
se2ip7eiGxWvpAzBp8Mf/jCh2O8t0NvFk2S73964DCqZBa+NvPY1sZDOp24AUQLj
PtYGfOFLIeVtW3v7jQSF2hk6TkfyXSs6jvwys2Zrijv/JnOSq16Px/SHXRmkFFSv
MEkoGunDbbqldn/x3yHEak+3fXSqq0noYs8jkoE55BvoVlxdD1z/kBFs
-----END CERTIFICATE-----

Intermediate certificate

Download

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-----BEGIN CERTIFICATE-----
MIIGTzCCBDegAwIBAgITEgAAAAKWpGDvrXNRKwAAAAAAAjANBgkqhkiG9w0BAQwF
ADAYMRYwFAYDVQQDEw1TUlZVU0QtUm9vdENBMB4XDTE1MDczMTA1MzEzOFoXDTMw
MDczMTA1NDEzOFowaTESMBAGCgmSJomT8ixkARkWAnVzMRIwEAYKCZImiZPyLGQB
GRYCY2ExEzARBgoJkiaJk/IsZAEZFgNrMTIxFjAUBgoJkiaJk/IsZAEZFgZzcnZ1
c2QxEjAQBgNVBAMTCVNSVlVTRC1DQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCC
AgoCggIBAKSeoQ3UXP+R+DXWbMgR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
dnVzZC5uZXQvYWlhcy9TUlZVU0QtUm9vdENBLmNydDANBgkqhkiG9w0BAQwFAAOC
AgEAc8AzFPNRLKN+xdtpKmTxZRTh8bUiuHHXYeuKeeZgAVqvpm1BY068KU6YjQbz
e6jOxqGe/81BPY8ZcXY6Ba3nyXrRtwJcY5VwrsL+GLu1fq1b6opnygX6s5AhWa4i
XQDzJszkjAV18yoA4bAtllnz0ZxnqGAZ2lqS/FrlCtOHlWaWciHzALN9BUYe4+XD
DK++qU68VF3Vop0oAgzpUQ/+eVtMu+qIJqtcUXHKNlInz5v/OfXiTwiSf/uzWVEk
U/deufDS/nWUeo52S2ZlY5ZG635Do4bA3CLFwMzBLecZznAncYUcFVlIty3z8BM0
mZ7Gf1zm6wm5fXT6sNjq7qLYTMDttyIJkA8aSA/QppzOeA41HgXmHRFOLFyJwWoM
JOYlm8g8PigGKU6sPoX7mWoEosxNjZ6R4o+zmEimAZjBz1DHpwKBsjmBuum03+1D
IrwZIAIkutM3wScCOhmMd0F1gZ5DSahsTMsUsxtncOar5cT3GSbE3YkmVahwucsw
E8UTDpV9EOThH94EpmKWLe27s5IWXo0oeWJj5BDX2RpaWczmKquH4mng49ahw+/P
K13rwTMSZvcbq4CgKEfKOPDGsCbTO1V+xf5Y4Hh60NfB8/CFS67tZjae3L4ejO9S
1mLiYmxJVcPgI95REWoD/x9q27toBb1IAsjBfHEYZErYGmA=
-----END CERTIFICATE-----

SRVUSD Root CA Certificate

Download

Also available at https://www.srvusd.net/PKI.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-----BEGIN CERTIFICATE-----
MIIFjjCCA3agAwIBAgIQegjDAjn44b9NqFSCwXI5LzANBgkqhkiG9w0BAQwFADAY
MRYwFAYDVQQDEw1TUlZVU0QtUm9vdENBMB4XDTE1MDczMTA1MTcyMFoXDTQ1MDcz
MTA1MjcxOFowGDEWMBQGA1UEAxMNU1JWVVNEL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