Home | History | Annotate | Download | only in ssl

Lines Matching refs:cn

130         // first CN provided.  All other CNs are ignored.
145 String msg = "Certificate for <" + host + "> doesn't contain CN or DNS subjectAlt";
157 // Don't trim the CN, though!
158 String cn = it.next();
159 cn = cn.toLowerCase(Locale.ENGLISH);
160 // Store CN in StringBuffer in case we need to report an error.
162 buf.append(cn);
168 // The CN better have at least two dots if it wants wildcard
171 boolean doWildcard = cn.startsWith("*.") &&
172 cn.indexOf('.', 2) != -1 &&
173 acceptableCountryWildcard(cn) &&
177 match = hostName.endsWith(cn.substring(1));
181 match = countDots(hostName) == countDots(cn);
184 match = hostName.equals(cn);
195 public static boolean acceptableCountryWildcard(String cn) {
196 int cnLen = cn.length();
199 if(cn.charAt(cnLen - 3) == '.') {
201 String s = cn.substring(2, cnLen - 3);
213 List<String> cnList = dnParser.getAllMostSpecificFirst("cn");
231 * from the CN field.