pageContext.setVariable(getString("admin",action,"returnVariable"),getSSLCertificate(config,host,port));
}
public static Query getSSLCertificate(Config config,String host, int port) throws PageException {
Resource cacerts=config.getSecurityDirectory();
CertificateInstaller installer;
try {
installer = new CertificateInstaller(cacerts,host,port);
} catch (Exception e) {
throw Caster.toPageException(e);
}
X509Certificate[] certs = installer.getCertificates();
X509Certificate cert;
Query qry=new QueryImpl(new String[]{"subject","issuer"},certs.length,"certificates");
for(int i=0;i<certs.length;i++){
cert=certs[i];