--- embedtools/etc/signkey_voucher.sh 2012/07/04 15:59:10 1.1 +++ embedtools/etc/signkey_voucher.sh 2012/07/22 22:46:46 1.2 @@ -0,0 +1,16 @@ +#!/bin/sh +# +# (C)`12 AITNET - Sofia/Bulgaria +# by Michael Pounov +# +# $Id: signkey_voucher.sh,v 1.2 2012/07/22 22:46:46 misho Exp $ +# + +RSABITS=64 +SSLDIR=/etc/ssl + +echo ">>> Create RSA pair ..." +openssl genrsa $RSABITS >$SSLDIR/voucher.key +chmod 0600 $SSLDIR/voucher.key +openssl rsa -pubout <$SSLDIR/voucher.key >$SSLDIR/voucher.crt +echo .