chris211602
Posts: 1
Joined: Wed Jul 24, 2019 5:18 pm

Re: [Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne

Wed Jul 24, 2019 5:22 pm

Not really sure why, but when I do
'echo -n "password" | iconv -t utf16le | openssl md4 > hash.txt'
, I get a message that says "bash: hash.txt: permission denied"

Anyone know how to solve this problem?

cronburg
Posts: 2
Joined: Fri Jul 26, 2019 9:04 pm

Re: [Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne

Fri Jul 26, 2019 9:14 pm

@chris211602 - you need to either run the command from e.g. your home directory, or from some other location where you have write permissions. Alternatively you can run the following command instead:

Code: Select all

echo -n "hash:" && echo -n "password" | iconv -t utf16le | openssl md4 | cut -f2 -d' '
and just copy and paste the long hexadecimal string from the terminal output instead of from the file:

Code: Select all

hash:8846000000000000000000000000586c

daniel-sc
Posts: 2
Joined: Mon Jul 29, 2019 9:02 am

Re: [Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne

Mon Jul 29, 2019 9:04 am

For the latest version "Buster" this has a bug and is not working: https://bugs.launchpad.net/raspbian/+bug/1834749

cronburg
Posts: 2
Joined: Fri Jul 26, 2019 9:04 pm

Re: [Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne

Wed Jul 31, 2019 9:18 pm

daniel-sc wrote:
Mon Jul 29, 2019 9:04 am
For the latest version "Buster" this has a bug and is not working: https://bugs.launchpad.net/raspbian/+bug/1834749
To get around that bug I was able to pull the necessary binaries from a "Stretch" image and use them without modification on a "Buster" image. See here: https://cronburg.com/2019/raspberry-pi- ... ixing-wifi for more of an explanation, but it was these three files that I needed to copy from a Stretch image to get WPA2/Enterprise working:

Code: Select all

/sbin/wpa_supplicant
/usr/lib/arm-linux-gnueabihf/libssl.so.1.0.2
/usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.2
Which I was able to upload to a remote server of mine and subsequently download onto Pis automatically out in the field:

Code: Select all

sudo su
[ ! -e /sbin/wpa_supplicant.old ] && mv /sbin/wpa_supplicant /sbin/wpa_supplicant.old
curl -o /sbin/wpa_supplicant https://cronburg.com/2019/raspberry-pi-wifi/wpa_supplicant
export FILE=libssl.so.1.0.2 ;      curl -o /usr/lib/arm-linux-gnueabihf/$FILE https://cronburg.com/2019/raspberry-pi-wifi/$FILE
export FILE=libcrypto.so.1.0.2; curl -o /usr/lib/arm-linux-gnueabihf/$FILE https://cronburg.com/2019/raspberry-pi-wifi/$FILE
Hopefully the upstream patch: https://marc.info/?l=linux-wireless&m=1 ... 413109&w=2 makes it downstream into the distributed version of Buster soon.

fyodor
Posts: 1
Joined: Tue Aug 13, 2019 6:46 pm

Re: [Tutorial] Setup Raspberry Pi - PEAP/MSCHAPV2 conne

Tue Aug 13, 2019 6:51 pm

I made it working on Raspbian lite by adding the following 2 lines to the end of /etc/ssl/openssl.cnf:
MinProtocol = TLSv1.0
CipherString = [email protected]=1
for more details see:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=911389

Return to “Networking and servers”