quinta-feira, 5 de agosto de 2010

kde - network manger plasmoid and wpa-wpa2

I had a problem connecting to my enterprise wireless network. They use WPA-WPA2 Enterprise with TTLS authentication and PAP as inner authentication.

I use the plasma widget of network manager, running on kubuntu 10.04

I figured it was a problem with reading/parsing the certificate file, from my syslog i got this message:

Aug 5 10:31:46 namikaze wpa_supplicant[848]: OpenSSL: tls_connection_ca_cert - Failed to parse ca_cert_blob error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag

I got on-line...with other means =)

and got to this bug report:

Bug 209673 - knetworkmanager applet (NOT THE PLASMOID) can't connect to WPA PEAP when validating by CA certificate

Well...they do say it's not related to the plasmoid...but i figured it should be similar...

They say it has something to do with network manager not feeding the certificate to the wpa_supplicant in the correct form/way (comment #21).

I've tried their workaround (comment #25)...well i failed...

~ #cat cacert.pem | grep -v "CERTIFICATE" | base64 -d > cacert.dem
base64: dados de entrada inválidos


so I thought to use openssl to convert the certificate to dem:

openssl x509 -in cacert.pem -outform der > cacert.dem

...and that did work!

I've just changed the configuration of the network...to point to the new certificate....and that actually did the trick =)