public static void main(String[] args) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchProviderException, CertificateException, IOException {

        /* Generate a DSA signature */

        if (args.length != 3) {
            System.out.println("Usage: GenSig nameOfFileToSign nameOfCert nameOfPriKey");
        }
        else{
        	generate(args[0], args[1], args[2]);
        }
    }