Add CN check with wildcards (*) funcionality