Attributes attrs1 = dnsContext.getAttributes(alias, new String[]{"TXT"});
javax.naming.directory.Attribute txtrecord = attrs1.get("txt");
String record = txtrecord.get().toString();
if (log.isDebugEnabled()) log.debug(">>>> DNS found record: " + record);
ParameterParser parser = new ParameterParser();
parser.setLowerCaseNames(true);
Map<String, String> keyEntry = parser.parse(record, ';');
String type = keyEntry.get("k");
if (type != null && !type.toLowerCase().equals("rsa"))
throw new RuntimeException("Unsupported key type: " + type);
String pem = keyEntry.get("p");
if (pem == null)