Bad error message for mismatched keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wpasupplicant (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: wpasupplicant
wpa supplicant wasn't working. Logs showed this:
OpenSSL: tls_connection_
You would think that my problem was something about a wrong tag on my client cert. Nope. Still don't know what a "tag" is.
Later:
OpenSSL: tls_connection_
So maybe it's a "bad tag" on my private key? Nope. Turns out my keys are PEM keys, which is different from DER keys, and it just decided to try DER first and the fact that it failed was harmless.
Third error:
OpenSSL: tls_connection_
What's a freaking key value mismatch?
That blew a few hours.
It meant I had the path to my private key pointing to the wrong (old) file, so it didn't match the new client certificate? Updating the path to the private key file fixed it.
Suggested changes:
1) Change errors on failing to load PEM keys as DER keys to indicate that it's not actually a fatal error.
2) Replacing "key value mismatch" with something like "private key <path/to/file> does not match client certificate <path/to/file>" would be nice. Preferably with some description of the way in which they do not match.
Oh yeah, it would also be nice if wpa supplicant logged at all by default.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: wpasupplicant 0.6.9-3ubuntu3 [modified: usr/share/
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Mon Jun 21 18:05:44 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: wpasupplicant
http:// w1.fi/gitweb/ gitweb. cgi?p=hostap. git;a=commitdif f;h=effab86ff2f 6b092eff2af3e1e 37f46491b66e15