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, 11 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

    1: #!/bin/sh
    2: #
    3: # (C)`12 AITNET - Sofia/Bulgaria <office@aitnet.org>
    4: #   by Michael Pounov <misho@elwix.org>
    5: #
    6: # $Id: signkey_voucher.sh,v 1.2 2012/07/22 22:46:46 misho Exp $
    7: #
    8: 
    9: RSABITS=64
   10: SSLDIR=/etc/ssl
   11: 
   12: echo ">>> Create RSA pair ..."
   13: openssl genrsa $RSABITS >$SSLDIR/voucher.key
   14: chmod 0600 $SSLDIR/voucher.key
   15: openssl rsa -pubout <$SSLDIR/voucher.key >$SSLDIR/voucher.crt
   16: echo .

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