ant genkeys stuck

edcasillas's Avatar


09 Feb, 2024 01:08 AM

I'm just getting started trying to develop extensions for Moneydance. I downloaded the app and the development kit from; I installed ant using homebrew on my Mac and I'm trying to build and run the example extension.

Following the instructions in the README file, I first tried to execute ant genkeys. However, the command never finishes, showing only the following:

$ ant genkeys
Buildfile: /Users/ed/moneydance-devkit-5.1/src/build.xml

     [java] Generating keys...

I've been waiting for at least 2 hours and it still doesn't finish. I've canceled it and ran it again with the same result.

How do I get it to correctly generate the keys?

  1. 1 Posted by Stuart Beesley ... on 09 Feb, 2024 01:21 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    It’s waiting for keyboard input (I expect). ant genkeys is instantaneous.

    Are you running this from an IDE or terminal? If IDE try the terminal.

    Try typing a password and press enter.

    PS - I don’t even think you need to generate keys and I don’t think you need to self sign your mxt file. I could be wrong….

  2. 2 Posted by edcasillas on 09 Feb, 2024 02:18 AM

    edcasillas's Avatar

    OMG yes, you're correct! After writing some password and hitting Enter, the command continues with the text "Enter a passphrase to decrypt this key"... how confusing is that it prompts for the passphrase AFTER it was entered.

    I was able to generate the keys, and then ran `ant`. The same happened, it appeared to be stuck. I entered the same passphrase, hit Enter and it finished in a second. I was then able to load the extension by dragging the ext file onto the open app.

    BTW it is indeed necessary to generate the keys, otherwise ant will fal indicating the keys do not exist.

    Thanks for the help!

  3. 3 Posted by Stuart Beesley ... on 09 Feb, 2024 07:28 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    I think that’s because the ant build runs the task to sign the mxt. You can probably edit the build.xml to skip the mxt signing. Really the signing is only of use when IK do it to tell MD that the extension is valid/signed.

    But there’s no harm in self signing and it does prevent mxt tampering.

  4. 4 Posted by Mike Bray (Quot... on 09 Feb, 2024 11:07 AM

    Mike Bray (Quote Loader Author)'s Avatar

    You might find this information useful

    You can automatically sign an extension using my signmxt.jar (see

  5. 5 Posted by edcasillas on 13 Feb, 2024 05:42 AM

    edcasillas's Avatar

    That's a fantastic resource! Thanks!!

  6. edcasillas closed this discussion on 13 Feb, 2024 06:09 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac