Merging their partnership with FON with their own commercial BT Openzone Wi-Fi network, BT now provide a large-scale Wi-Fi service in the United Kingdom under the name "BT Wi-Fi". With this, BT Broadband (and one-off paying) customers are able to access BT Wi-Fi not just from commercial locations but also from households with the BT Wi-Fi service broadcasting from their BT Home Hubs.
However, the BT Wi-Fi service has it's downsides. If you are using a computer and you connect to the "BTWiFi-with-FON" SSID, then there is no wireless encryption (like WPA) of any kind between your device and the hotspot. This means that your traffic, if not encrypted through some other means, is susceptible to eavesdropping by a nearby adversary. This can put you and your data/passwords at risk. This is actually a common problem with many public Wi-Fi hotspots, and an issue that not many users are educated on. Be cautious of any unsecured networks, kids!
Secondly, and somewhat unrelated, the service will not "remember" you and will expect you to log back in each time you roam to a new hotspot or after having been away from a given hotspot for a period of time. This can become somewhat tedious if you are a frequent user of the service.
It is possible, however, to securely connect to the BT Wi-Fi service using a WPA-encrypted wireless connection, and to be automatically logged in at the same time, by making use of an alternative wireless SSID currently used only by iOS devices with the BT Wi-Fi app installed. This article explores the working parts of the authenticated login and how to configure it on other devices.
802.1X is an authentication mechanism for network access points. There are both wireless and wired variants, and both support a number of authentication mechanisms, including certificate-based, SIM-based and integrated Windows logon, amongst others. The commonly adopted wireless variant is known as "WPA/WPA2 Enterprise".
The "BTWifi-X" SSID broadcasted by BT Home Hubs is a "WPA2 Enterprise"-enabled SSID. It supports authentication using EAP-TTLS, which is effectively certificate-based authentication in combination with a username and password. This means that, once authenticated, any traffic between the client device and the hotspot is encrypted. Furthermore, the username and password supplied in the profile allow the device to prove it's identity to the BT Wi-Fi service automatically, allowing automatic login.
It is this "BTWifi-X" SSID that we are interested in.
Obtaining the Configuration Profile
iOS devices are able to take advantage of the secure "BTWifi-X" SSID by installing a configuration profile from the BT Wi-Fi app from the App Store, or more accurately, from a webpage linked from the BT Wi-Fi app. The Configuration Profile is a "mobileconfig" file, specifically for iOS devices, which contains all of the relevant settings to make a secure connection. It includes the BT Wi-Fi security certificates, and your automatic login credentials. In order to continue, you will need to retrieve one of these profiles.
These instructions assume that you have reasonable technical know-how, access to an iOS device and that you are a BT Broadband account holder. You can borrow an iOS device temporarily to complete these steps, and you do not need to be in range of a BT Wi-Fi hotspot to acquire the profile.
- Install and open the BT Wi-Fi app, and go into the "More" tab.
- Select "Settings" and then tap "Install connection profile".
- Enter your BT username and password, tap "Install connection profile".
- Wait until you are redirected into Safari.
- Once the device has jumped to Safari, cancel the prompt to install the profile on your device and then copy the URL from the address bar.
- Send the link to your computer (by email, instant message or some other medium) and open the page in your web browser. The link may expire after some time so aim to do this quickly.
- Open the page's source using your browser's developer tools and find the direct link to download the "mobileconfig" hidden in the <script> section of the HTML.
Upon navigating to this URL, you should be prompted to download the "mobileconfig" file. Save it to your computer and open it in the text editor of your choice.
If you borrowed an iOS device to complete these steps, then from this point forward, you no longer need it and can uninstall the BT Wi-Fi app.
PLEASE NOTE that this "mobileconfig" file uniquely identifies you, and contains your authentication credentials. Do not share any part of your "mobileconfig" with anyone else. Please see the Important Warning at the bottom of this article for more information.
Configuring the 802.1.X connection on macOS
If you just want to enable the automatic login to BT Wi-Fi from your macOS computer, then you need not dissect the Configuration Profile. Instead, just double-click the "mobileconfig" from Finder, agree to install the profile and the "BTWifi-X" wireless network will be configured automatically.
Dissecting the Configuration Profile
If you want to configure automatic login from another device that does not run iOS or macOS, then you will need to extract the relevant information from the "mobileconfig" file.
The Configuration Profile is actually an XML document. It is signed and more than likely contains some garbage-looking characters at the beginning and end of the document, but these are actually certificates and signatures. The relevant and interesting section is the readable XML in the middle of the file.
There are two sections that are relevant. The first is the section that contains your (unique) automatic login username and password, as shown below:
<key>TTLSInnerAuthentication</key> <string>PAP</string> <key>UserName</key> <string>8021x:BTRCon/newprof/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXX-XXX</string> <key>UserPassword</key> <string>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</string>
Make a note of the username, which starts with 8021x:BTRcon/ and ends with some variation of your BT username. Also make a note of the password, which is a random string of numbers and letters.
The second section is the section that contains the generic (non-unique) BT 802.1X certificate, which is used as a "trusted certificate" to prove that the hotspot you are connecting to really belongs to BT Wi-Fi:
<key>PayloadCertificateFileName</key> <string>8021x.bt.com.cer</string> <key>PayloadContent</key> <data> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ... </data>
If you are well-versed on certificates, extract the Base64 certificate data from the "mobileconfig" file and transform it into a correctly-formatted certificate file and name it "8021x.bt.com.cer".
Otherwise, if you prefer convenience and you are happy to trust this website as a source, feel free to click here to download the BT Wi-Fi trust certificate.
Configuring the 802.1X connection on Windows
In order to enable the automatic BT Wi-Fi login from a Windows machine, you need to manually create the wireless profile.
To start with, you will need to add the BT 802.1X certificate to your trusted certificate store:
- Double-click the "8021x.bt.com.cer" file in Windows Explorer.
- The certificate will be shown. Verify that it is issued to "8021x.bt.com" and that it is issued by "Symantec Class 3 Secure Server SHA256 SSL CA".
- If you downloaded the certificate from above and you wish to perform a further check on the certificate, then go into the Details tab and check that the Signature is "68 fe 1a 76 fc 2c ef a2 05 22 3f e4 7b 39 0a 9c".
- Please note that this is correct as of the time of writing, but the certificate is only valid until Sunday 16 December 2018. At this time, BT will likely issue a new certificate and the above serial number will change.
- On the "General" tab, click the "Install Certificate..." button.
- In "Store Location", select "Local Machine" and click "Next". You may be presented with a UAC privilege prompt. Confirm that you wish to continue.
- When asked, select "Place all certificates in the following store".
- Click "Browse", and select "Trusted Root Certification Authorities".
- Click "OK".
- Click "Next", and then "Finish" to confirm.
Now that you have the BT 802.1X certificate installed and trusted, you can now configure the wireless profile to connect to "BTWifi-X" hotspots:
- Go into "Control Panel", and then into "Network & Sharing Center".
- Click "Set up a new connection or network".
- When prompted, select "Manually connect to a wireless network" and then click "Next".
- In "Network Name", enter: BTWifi-X
- In "Security Type", select "WPA2-Enterprise".
- Make sure that "Start this connection automatically" is checked, and click "Next".
- When prompted, click "Change connection settings".
- In the "Security" tab, under "Choose a network authentication method", select "Microsoft: EAP-TTLS".
- Click the "Settings" button next to "Microsoft: EAP-TTLS".
- Under "Connect to these servers", enter: 8021x.bt.com
- Under "Trusted Root Certification Authorities", place a checkbox next to "8021x.bt.com".
- On the same dialog box, uncheck "Enable identity privacy" so that it is disabled.
- Make sure that "Unencrypted password (PAP)" is selected under "Select a non-EAP method for authentication".
- Click "OK" to return back to the "BTWifi-X Wireless Network Properties" dialog.
- Click the "Advanced settings" button.
- Place a check in the box next to "Specify authentication mode", and then select "User authentication" in the drop-down box.
- Click the "Save Credentials" button.
- When prompted, enter the full username and password that you extracted from the "mobileconfig" file above. The username starts with 8021x:BTRcon/ and ends with some variation of your BT username.
- Click "OK", and then click "OK" twice more to close each dialog box. Finally, click "Close".
You should now be able to connect to "BTWifi-X" from the wireless networks list.
Configuring the 802.1X connection on other platforms
I am unable to provide specific instructions for other platforms, such as Android, but the following configuration settings should be of use to power users wishing to configure this on their devices:
- Wireless Service Set Identifier (SSID): BTWifi-X
- Wireless authentication method: WPA2 Enterprise
- Wireless authentication EAP protocol: EAP-TTLS
- Inner EAP-TTLS authentication protocol: PAP
- Identity Privacy: Disabled
- Username: 8021x:BTRCon/newprof/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX:XXX-XXX (as above)
- Password: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (as above)
- Trusted Certificates: "8021x.bt.com" certificate (as above)
- Trusted Server Certificate Names / Connect To Names: 8021x.bt.com
This bit really is important. Please read it.
Each BT Wi-Fi Configuration Profile UNIQUELY IDENTIFIES YOU, and contains specific authentication credentials linked to your BT Wi-Fi account. DO NOT SHARE your Configuration Profile, or any details from it, with anyone else.
You are NOT ANONYMOUS when using the BT Wi-Fi service. If the service is abused, BT will be able to identify that the abuse is coming from your BT Wi-Fi identity and your service will likely be terminated by BT. You have been warned. Just don't do it.
You perform the above actions ENTIRELY AT YOUR OWN RISK. I am not affiliated with BT in any way, and do not take any responsibility for anything that may happen as a result of following the above instructions.