/[smeserver]/rpms/openssl/sme8/make-dummy-cert
ViewVC logotype

Contents of /rpms/openssl/sme8/make-dummy-cert

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 18 03:03:07 2014 UTC (10 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: openssl-0_9_8e-28_el5_sme, openssl-0_9_8e-33_1_el5_sme, openssl-0_9_8e-32_1_el5_sme, openssl-0_9_8e-27_1_el5_sme, openssl-0_9_8e-27_el5_10_1, openssl-0_9_8e-31_1_el5_sme, HEAD
Branch point for: upstream
Initial import

1 #!/bin/sh
2 umask 077
3
4 answers() {
5 echo --
6 echo SomeState
7 echo SomeCity
8 echo SomeOrganization
9 echo SomeOrganizationalUnit
10 echo localhost.localdomain
11 echo root@localhost.localdomain
12 }
13
14 if [ $# -eq 0 ] ; then
15 echo $"Usage: `basename $0` filename [...]"
16 exit 0
17 fi
18
19 for target in $@ ; do
20 PEM1=`/bin/mktemp /tmp/openssl.XXXXXX`
21 PEM2=`/bin/mktemp /tmp/openssl.XXXXXX`
22 trap "rm -f $PEM1 $PEM2" SIGINT
23 answers | /usr/bin/openssl req -newkey rsa:1024 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 2> /dev/null
24 cat $PEM1 > ${target}
25 echo "" >> ${target}
26 cat $PEM2 >> ${target}
27 rm -f $PEM1 $PEM2
28 done

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed