cat.debug("<getCertificateChain()");
log.debug("<getCertificateChain()");
    public Certificate[] getCertificateChain() {        cat.debug(">getCertificateChain()");        // TODO: should support more than 2 levels of CAs        Certificate[] chain;        if (CertTools.isSelfSigned(caCert)) {            chain = new Certificate[1];        } else {            chain = new Certificate[2];            chain[1] = rootCert;        }        chain[0] = caCert;        cat.debug("<getCertificateChain()");        return chain;    }