File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / etc / signkey_voucher.sh
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Jul 22 22:46:46 2012 UTC (11 years, 9 months ago) by misho
Branches: MAIN
CVS tags: tools3_0, tools2_9, tools2_8, tools2_7, tools2_6, tools2_5, tools2_4, tools2_3, tools2_2, tools2_1, tools2_0, tools1_2, TOOLS2_9, TOOLS2_8, TOOLS2_7, TOOLS2_6, TOOLS2_5, TOOLS2_4, TOOLS2_3, TOOLS2_2, TOOLS2_1, TOOLS2_0, TOOLS1_2, TOOLS1_1, HEAD
version 1.1

#!/bin/sh
#
# (C)`12 AITNET - Sofia/Bulgaria <office@aitnet.org>
#   by Michael Pounov <misho@elwix.org>
#
# $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 .

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>