I am using wpa_supplicant in an embedded box (running linux). The wpa_supplicant is working as expected but when the user certificate expires (only the user certificate and not the root certificate), the device is still running in network and not getting disconnected. It is getting disconnected only when i do "ifconfig eth0 down" followed by "ifconfig eth0 up". Is there a mechanism to validate the certificates periodically and if so how to do it.
wpa_supplicant configuration is as follows:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=2
ap_scan=0
network={
ssid="YOUR-SSID"
key_mgmt=IEEE8021X
eap=PEAP
identity="test"
password="password"
ca_cert="/etc/certs/cacert.pem"
phase2="autheap=TLS"
ca_cert2="/etc/certs/cacert.pem"
private_key2="/etc/certs/test.pfx"
private_key2_passwd="password"
}