1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/OpenSecurity/bin/create-cert-and-iso.sh Wed Jan 29 09:23:52 2014 +0000
1.3 @@ -0,0 +1,14 @@
1.4 +#!/bin/sh
1.5 +
1.6 +# create a ssh-key pair in the current folder
1.7 +# and create a ISO image with it
1.8 +
1.9 +VM_NAME=$(basename "$(pwd)")
1.10 +echo ${VM_NAME}
1.11 +
1.12 +mkdir .ssh &> /dev/null
1.13 +ssh-keygen -q -t rsa -N "" -C "${VM_NAME}" -f dvm_key &> /dev/null
1.14 +chmod 500 dvm_key
1.15 +mv dvm_key.pub .ssh/authorized_keys
1.16 +genisoimage -J -R -o "${VM_NAME}.iso" .ssh
1.17 +