fixed potential attack by supplying non hexadecimal strings as certificate common name