Correct wildcard matching and also support wildcard in the CN and not only in the SANs