Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wireless-wpa-psk example #13

Closed
cinelli opened this issue Feb 23, 2013 · 4 comments
Closed

Add wireless-wpa-psk example #13

cinelli opened this issue Feb 23, 2013 · 4 comments

Comments

@cinelli
Copy link

cinelli commented Feb 23, 2013

Description='A wireless connection using a custom network block configuration and encrypting the password for security using wpa_passphrase'
Interface=wlan0
Connection=wireless
Security=wpa-configsection
IP=dhcp
WPAConfigSection=(
'ssid="ssid"'
'key_mgmt=WPA-PSK'
'psk=PSK'
)

@joukewitteveen
Copy link
Owner

I would expect you could just use the wireless-wpa example and write the key as Key=\"<encrypted_PSK>.
The comments above the Key='WirelessKey' line in that example file do need to be improved. Suggestions are welcome.

@cinelli
Copy link
Author

cinelli commented Feb 23, 2013

I must have looked over this when viewing the examples, I adjusted my configs and also the Arch Wiki. How about something like this since at the bottom of man 5 netctl.profile it discusses these methods with additional examples.

ESSID='MyNetwork'

Hexidecimal keys use non-quoted method "<encrypted_psk>

Keys starting with " , use quoted string method. '""""'

Key='WirelessKey'

Uncomment this if your ssid is hidden

#Hidden=yes

Federico Cinelli cinellimotorsports@gmail.com
Cinelli Motorsports LLC
Cinelli Thoughts
Stay true
On Sat, 23 Feb 2013 02:27:38 -0800
Jouke Witteveen notifications@github.com wrote:

I would expect you could just use the wireless-wpa example and write the key as Key=\"<encrypted_PSK>.
The comments above the Key='WirelessKey' line in that example file do need to be improved. Suggestions are welcome.


Reply to this email directly or view it on GitHub:
#13 (comment)

@cinelli
Copy link
Author

cinelli commented Feb 24, 2013

Also, when explaining '""""'
if Key="WirelessKey (literally) .. Would this expressed Key='""WirelessKey"' ?

In example/wireless-wpa it states if starts with "
then it should be written '"""" which would be expressed in the profile: Key='""""WirelessKey"'
I think you may have meant '""' since " would be part of ; shown as Key='""WirelessKey"'

@joukewitteveen
Copy link
Owner

This last point is the main reason (for me) these lines should be improved. Your observation is correct (one double quote too much), but this more or less means the comments should come with examples to avoid confusion. We should probably also refer to the manpage section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants