Add CN check with wildcards (*) funcionality 2