SeattleTestbed / custominstallerbuilder

Django app to customize SeattleTestbed installers with public keys
MIT License
0 stars 7 forks source link

generatekeys.py gives incorrect key values #11

Closed asm582 closed 9 years ago

asm582 commented 9 years ago

I was trying to regenerate cib.publickey and cib.privatekey and for some weird reason its giving me four values into the cib.publickey file.

asm582 commented 9 years ago

After looking into history of the commands that i typed below was my mistake:-

1) I did not delete the file earlier cib file that was generated by command

python generatekeys.py c~/cib 4096

2) I again generated keys without deleting the previously geenrated cib files with command as follows:-

python generatekeys.py ~/cib 1024

This lead to values that ever appending into the file and give weird results.

aaaaalbert commented 9 years ago

generatekeysappending to existing key files is an issue requiring review. Please retry once more and see what you get.

aaaaalbert commented 9 years ago

Okay, looks like we know what the issue is: Existing key files may get overwritten only partially when the keys generated later end up shorter in length than the ones in the files. Closing this one though, generatekeys.py belongs to softwareupdater.

New issue: SeattleTestbed/softwareupdater#53