Home | History | Annotate | Download | only in ssl

Lines Matching defs:cn

124         // first CN provided.  All other CNs are ignored.
139 String msg = "Certificate for <" + host + "> doesn't contain CN or DNS subjectAlt";
151 // Don't trim the CN, though!
152 String cn = it.next();
153 cn = cn.toLowerCase(Locale.ENGLISH);
154 // Store CN in StringBuffer in case we need to report an error.
156 buf.append(cn);
162 // The CN better have at least two dots if it wants wildcard
165 boolean doWildcard = cn.startsWith("*.") &&
166 cn.indexOf('.', 2) != -1 &&
167 acceptableCountryWildcard(cn) &&
171 match = hostName.endsWith(cn.substring(1));
175 match = countDots(hostName) == countDots(cn);
178 match = hostName.equals(cn);
189 public static boolean acceptableCountryWildcard(String cn) {
190 int cnLen = cn.length();
193 if(cn.charAt(cnLen - 3) == '.') {
195 String s = cn.substring(2, cnLen - 3);
207 List<String> cnList = dnParser.getAllMostSpecificFirst("cn");
225 * from the CN field.