I am creating a bash script (that I will happily share on github when done) that takes random public and private keys for bitcoin and then bottles them up in an AES encrypted container and then SSSS the key to unlock. (Aka, a really secure paper wallet to distribute but itself is worthless. ) For right now, the part that I have thus far "outsourced" was the public / private key generation using bitaddress.org to create the bulk addresses. I would like to pull that part into the bash script.
I have reviewed, https://github.com/RobKohr/PHP-Bitcoin-Address-Creator/blob/master/lib/botg.sh and found that 50% of the time the private key in fact does not "unlock" the public key. Further it only runs in Ubuntu not OSX. Further, my goal is to replicate the bulk function such that 50 or 1000 address could be created.
Does anyone have any scripts or suggested links / locations / examples to accomplish the creation of the key pairs?