KeyStore keystore = KeyStore.getInstance("PKCS12");
keystore.load(new FileInputStream(keystorePath), password.toCharArray());
// sign PDF
CreateSignature signing = new CreateSignature(keystore, password.toCharArray());
signing.signDetached(new File(inDir + "sign_me.pdf"), new File(outDir + "signed.pdf"));
// TODO verify the signed PDF file
}
/**