String filename = args[1];
    public void execute() throws IllegalAdminCommandException, ErrorAdminCommandException {        if (args.length < 2) {            String msg = "List certificates that will expire within the given number of days.\n";            msg += "Usage: CA listexpired <days>";            throw new IllegalAdminCommandException(msg);        }        String filename = args[1];        try {            long days = Long.parseLong(args[1]);            Date findDate = new Date();            long millis = (days * 24 * 60 * 60 * 1000);            findDate.setTime(findDate.getTime() + (long) millis);            getOutputStream().println("Looking for certificates that expire before " + findDate + ".");            Collection certs = getExpiredCerts(findDate);            Iterator iter = certs.iterator();            while (iter.hasNext()) {                X509Certificate xcert = (X509Certificate) iter.next();                Date retDate = xcert.getNotAfter();                String subjectDN = CertTools.getSubjectDN(xcert);                String serNo = xcert.getSerialNumber().toString();                getOutputStream().println("Certificate with subjectDN '" + subjectDN +                    "' and serialNumber '" + serNo + "' expires at " + retDate + ".");            }        } catch (Exception e) {            throw new ErrorAdminCommandException(e);        }    }