Making leases and devkeys from a CSV file - now in olpc-bios-crypto

Martin Langhoff martin.langhoff at gmail.com
Thu Aug 27 13:29:28 EDT 2009


I've just written 2 convenient scripts that wrap around obc-make-lease
and obc-make-devkey.

These allow you to create a CSV file of the XOs, containing the SN and
UUID, and then generate leases or devkeys for those XOs.

To use:

  - On an XS: yum --enablerepo=olpcxs-testing install olpc-bios-crypto
... otherwise grab the latest olpc-bios-crypto rpm from
http://xs-dev.laptop.org/xsrepos/testing/olpc/9/i386/

  - Create a CSV file, with no quotes or strange spaces - just each line having:
    SN,UUID

  - Execute

  obc-make-leases-from-csv.sh --signingkey /path/to/your/key
laptops.csv >  mynewleases.sig

Note: The script will "complete" the path to the key, so you must
_not_ include the trailing ".private".

Patch implementing this is here:
http://dev.laptop.org/git/bios-crypto/commit/?h=delegation&id=0cc67a88a53db86abc57f125f8f7f2a981d41fab

cheers,



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff



More information about the Devel mailing list