Handle certificate error when common name is not set

A certiticate without a common name in the subject
info field or a issuer info field is an invalid certificate.
When TOFU connection flow receives such an invalid certiticate
fail the connection.

Bug: 329191353
Test: atest InsecureEapNetworkHandlerTest
Change-Id: Ie37aebdce2164d0200003068c569645095155541
2 files changed