diff options
author | Dirk-Willem van Gulik <dirkx@apache.org> | 2009-03-24 16:39:00 +0100 |
---|---|---|
committer | Dirk-Willem van Gulik <dirkx@apache.org> | 2009-03-24 16:39:00 +0100 |
commit | 367d5a782948b624dc7daa5a8cb74c779d0c2ddd (patch) | |
tree | 3674b04291c0a33978d94f891567eaa1eb0de6c7 /test/make_sni.sh | |
parent | Declare variables prior to code statements otherwise some compilers choke. (diff) | |
download | apache2-367d5a782948b624dc7daa5a8cb74c779d0c2ddd.tar.xz apache2-367d5a782948b624dc7daa5a8cb74c779d0c2ddd.zip |
make_sni.sh test -- Accomodate for platforms which do not have RANDOM in their sh(1) implementation - rely on the pid and a not so random prefix
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757851 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/make_sni.sh')
-rw-r--r-- | test/make_sni.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/make_sni.sh b/test/make_sni.sh index 58ac41a655..6d1288acf5 100644 --- a/test/make_sni.sh +++ b/test/make_sni.sh @@ -121,7 +121,8 @@ mkdir -p ${DIR}/ssl ${DIR}/htdocs ${DIR}/logs || exit 1 # keyUsage = cRLSign, keyCertSign values. This is fine # for most browsers. # -serial=$RANDOM +serial=$RANDOM$$ + openssl req -new -nodes -batch \ -x509 \ -days 10 -subj '/CN=Da Root/O=SNI testing/' -set_serial $serial \ @@ -134,13 +135,13 @@ mkdir -p ${CDIR} # openssl req -new -nodes -batch \ -x509 \ - -days 10 -subj '/CN=Da Second Root/O=SNI user access I/' -set_serial $RANDOM \ + -days 10 -subj '/CN=Da Second Root/O=SNI user access I/' -set_serial 2$serial$$\ -keyout ${CDIR}/xs-root-1.key -out ${CDIR}/xs-root-1.pem \ || exit 2 openssl req -new -nodes -batch \ -x509 \ - -days 10 -subj '/CN=Da Second Root/O=SNI user access II/' -set_serial $RANDOM \ + -days 10 -subj '/CN=Da Second Root/O=SNI user access II/' -set_serial 3$serial$$ \ -keyout ${CDIR}/xs-root-2.key -out ${CDIR}/xs-root-2.pem \ || exit 2 @@ -169,7 +170,7 @@ do # openssl x509 -text -req \ -CA ${CDIR}/xs-root-$i.pem -CAkey ${CDIR}/xs-root-$i.key \ - -set_serial $RANDOM -in ${CDIR}/client-$i.req -out ${CDIR}/client-$i.pem \ + -set_serial 3$serial$$ -in ${CDIR}/client-$i.req -out ${CDIR}/client-$i.pem \ || exit 4 # And create a pkcs#12 version for easy browser import. |