To recompile and reinstall wpasupplicant using GNU-TLS instead of OpenSSL on Ubuntu (and derivated distros):
sudo su
cd /usr/src
apt-get install devscripts
apt-get build-dep wpasupplicant
apt-get install libgnutls-dev
apt-get source wpasupplicant
We then open the file /usr/src/wpasupplicant-x.x.x/debian/config/linux and replace