cat.debug(">getBytesFromPEM");
log.debug(">getBytesFromPEM");
    public static byte[] getBytesFromPEM(byte[] inbuf, String beginKey, String endKey)    throws IOException {        cat.debug(">getBytesFromPEM");        ByteArrayInputStream instream = new ByteArrayInputStream(inbuf);        BufferedReader bufRdr = new BufferedReader(new InputStreamReader(instream));        ByteArrayOutputStream ostr = new ByteArrayOutputStream();        PrintStream opstr = new PrintStream(ostr);        String temp;        while ((temp = bufRdr.readLine()) != null &&        !temp.equals(beginKey))            continue;        if (temp == null)            throw new IOException("Error in input buffer, missing " + beginKey + " boundary");        while ((temp = bufRdr.readLine()) != null &&        !temp.equals(endKey))            opstr.print(temp);        if (temp == null)            throw new IOException("Error in input buffer, missing " + endKey + " boundary");        opstr.close();        byte[] bytes = Base64.decode(ostr.toByteArray());        cat.debug("<getBytesFromPEM");        return bytes;    } // getBytesfromPEM