EAP-TLS (OLD): Difference between revisions
imported>Uncurlhalo Migrated from Uniluug because StartSSL are shitlords |
imported>Mutantmonkey No edit summary |
||
| Line 20: | Line 20: | ||
* Select '''WPA & WPA2 Enterprise''' from the 'Security' drop-down menu | * Select '''WPA & WPA2 Enterprise''' from the 'Security' drop-down menu | ||
* Choose '''TLS''' as the authentication type from the 'Authentication' drop-down menu | * Choose '''TLS''' as the authentication type from the 'Authentication' drop-down menu | ||
* Type in your | * Type in your PID in the 'Identity' text box | ||
* To get 'User Certificate': | * To get 'User Certificate': | ||
| Line 46: | Line 46: | ||
* Check "Use these settings for all networks sharing this essid" | * Check "Use these settings for all networks sharing this essid" | ||
* Select '''EAP-TLS''' from the dropdown menu. | * Select '''EAP-TLS''' from the dropdown menu. | ||
* For identity, enter your | * For identity, enter your PID. | ||
* For private key, enter the path to your downloaded p12 file. | * For private key, enter the path to your downloaded p12 file. | ||
* Enter your private key password. | * Enter your private key password. | ||
* For the Path to CA Cert, enter ''' | * For the Path to CA Cert, enter '''/etc/ssl/certs/GlobalSign_Root_CA.pem''' | ||
* Hit OK | * Hit OK | ||
* Check "Automatically connect to this network" | * Check "Automatically connect to this network" | ||
| Line 57: | Line 57: | ||
Tested on [[Arch Linux]] with netcfg 3.0 (updated on 2013-04-12). | Tested on [[Arch Linux]] with netcfg 3.0 (updated on 2013-04-12). | ||
* Create a file, '''/etc/network.d/ | * Create a file, '''/etc/network.d/VT-Wireless''' and place this in it:<br /> | ||
CONNECTION='wireless' | CONNECTION='wireless' | ||
INTERFACE='wlan0' | INTERFACE='wlan0' | ||
SECURITY='wpa-configsection' | SECURITY='wpa-configsection' | ||
ESSID=' | ESSID='VT-Wireless' | ||
IP='dhcp' | IP='dhcp' | ||
IP6='stateless' | IP6='stateless' | ||
CONFIGSECTION=' | CONFIGSECTION=' | ||
ssid=" | ssid="VT-Wireless" | ||
proto=RSN | proto=RSN | ||
key_mgmt=WPA-EAP | key_mgmt=WPA-EAP | ||
| Line 72: | Line 72: | ||
private_key="PATH TO YOUR PRIVATE KEY" | private_key="PATH TO YOUR PRIVATE KEY" | ||
private_key_passwd="YOUR PRIVATE KEY PASSWORD" | private_key_passwd="YOUR PRIVATE KEY PASSWORD" | ||
ca_cert=" | ca_cert="/etc/ssl/certs/GlobalSign_Root_CA.pem" | ||
' | ' | ||
Make sure to change '''identity''' to your | Make sure to change '''identity''' to your PID, '''private_key''' to the path to your downloaded p12 file, and '''private_key_passwd''' to the password for your private key. | ||
* After creating this file, make sure to change the owner to root (<code>sudo chown root:root /etc/network.d/ | * After creating this file, make sure to change the owner to root (<code>sudo chown root:root /etc/network.d/VT-Wireless</code>) and change the permissions so that it can be read only by the owner (<code>sudo chmod 0600 /etc/network.d/VT-Wireless</code>). This will ensure that your private key password cannot be read by others easily. | ||
* To connect, simply type the following in a terminal: | * To connect, simply type the following in a terminal: | ||
sudo netcfg | sudo netcfg VT-Wireless | ||
==netctl== | ==netctl== | ||
Tested on [[Arch Linux]] with netctl 0.8 (updated on 2013-04-12). | Tested on [[Arch Linux]] with netctl 0.8 (updated on 2013-04-12). | ||
* Create a file, '''/etc/netctl/ | * Create a file, '''/etc/netctl/VT-Wireless''' and place this in it: | ||
Description=" | Description="VT-Wireless EAP-TLS" | ||
Interface=wlan0 | Interface=wlan0 | ||
Connection=wireless | Connection=wireless | ||
| Line 94: | Line 94: | ||
WPAConfigSection=( | WPAConfigSection=( | ||
'ssid=" | 'ssid="VT-Wireless"' | ||
'proto=RSN' | 'proto=RSN' | ||
'key_mgmt=WPA-EAP' | 'key_mgmt=WPA-EAP' | ||
| Line 101: | Line 101: | ||
'private_key="PATH TO YOUR PRIVATE KEY"' | 'private_key="PATH TO YOUR PRIVATE KEY"' | ||
'private_key_passwd="YOUR PRIVATE KEY PASSWORD"' | 'private_key_passwd="YOUR PRIVATE KEY PASSWORD"' | ||
'ca_cert=" | 'ca_cert="/etc/ssl/certs/GlobalSign_Root_CA.pem"' | ||
) | ) | ||
Make sure to change '''identity''' to your | Make sure to change '''identity''' to your PID, '''private_key''' to the path to your downloaded p12 file, and '''private_key_passwd''' to the password for your private key. | ||
* After creating this file, make sure to change the owner to root (<code>sudo chown root:root /etc/netctl/ | * After creating this file, make sure to change the owner to root (<code>sudo chown root:root /etc/netctl/VT-Wireless</code>) and change the permissions so that it can be read only by the owner (<code>sudo chmod 0600 /etc/netctl/VT-Wireless</code>). This will ensure that your private key password cannot be read by others easily. | ||
* To connect, simply type the following in a terminal: | * To connect, simply type the following in a terminal: | ||
sudo netctl start | sudo netctl start VT-Wireless | ||
==wpa_supplicant== | ==wpa_supplicant== | ||
| Line 116: | Line 116: | ||
* Place this at the bottom of your '''/etc/wpa_supplicant.conf''': | * Place this at the bottom of your '''/etc/wpa_supplicant.conf''': | ||
network={ | network={ | ||
ssid=" | ssid="VT-Wireless" | ||
proto=RSN | proto=RSN | ||
key_mgmt=WPA-EAP | key_mgmt=WPA-EAP | ||
| Line 123: | Line 123: | ||
private_key="PATH TO YOUR PRIVATE KEY" | private_key="PATH TO YOUR PRIVATE KEY" | ||
private_key_passwd="YOUR PRIVATE KEY PASSWORD" | private_key_passwd="YOUR PRIVATE KEY PASSWORD" | ||
ca_cert=" | ca_cert="/etc/ssl/certs/GlobalSign_Root_CA.pem" | ||
} | } | ||
Make sure to change '''identity''' to your | Make sure to change '''identity''' to your PID, '''private_key''' to the path to your downloaded p12 file, and '''private_key_passwd''' to the password for your private key. | ||
* To connect, simply start wpa_supplicant as you would manually, for example: | * To connect, simply start wpa_supplicant as you would manually, for example: | ||
| Line 148: | Line 148: | ||
* Leave '''CA certificate''' at '''(unspecified)'''. | * Leave '''CA certificate''' at '''(unspecified)'''. | ||
* Change '''User certificate''' to the name of the certificate you installed for this network. | * Change '''User certificate''' to the name of the certificate you installed for this network. | ||
* For '''Identity''', you may leave it blank or enter your | * For '''Identity''', you may leave it blank or enter your PID, depending on network. | ||
* Leave all other fields blank. | * Leave all other fields blank. | ||