[PATCH 2/2] unit: Add TLS tests for cert's DNSName matching