Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
sblim-sfcb
0360-bnc470203-genSslCert-mktemp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0360-bnc470203-genSslCert-mktemp.patch of Package sblim-sfcb
diff -wruN ../orig-sblim-sfcb-1.3.2/genSslCert.sh ./genSslCert.sh --- ../orig-sblim-sfcb-1.3.2/genSslCert.sh 2007-02-15 15:07:22.000000000 +0100 +++ ./genSslCert.sh 2009-01-28 17:37:49.000000000 +0100 @@ -3,8 +3,9 @@ HOSTNAME=`uname -n` DO_SERVER=yes DO_CLIENT=yes +DIR=`mktemp -d /var/tmp/sfcb.XXXXXX` -trap "rm -f /var/tmp/key.pem /var/tmp/cert.pem /var/tmp/ssl.cnf" exit +trap "rm -f $DIR/key.pem $DIR/cert.pem $DIR/ssl.cnf" exit echo "Generating SSL certificates in $TARGETDIR" @@ -27,7 +28,7 @@ exit 0 fi -cat > /var/tmp/ssl.cnf <<EOF +cat > $DIR/ssl.cnf <<EOF [req] distinguished_name=user_dn prompt=no @@ -38,20 +39,20 @@ EOF openssl req -x509 -days 365 -newkey rsa:2048 \ - -nodes -config /var/tmp/ssl.cnf \ - -keyout /var/tmp/key.pem -out /var/tmp/cert.pem + -nodes -config $DIR/ssl.cnf \ + -keyout $DIR/key.pem -out $DIR/cert.pem -chmod 700 /var/tmp/*.pem +chmod 700 $DIR/*.pem if [ $DO_SERVER = yes ] then - cp /var/tmp/cert.pem $TARGETDIR/server.pem - cp /var/tmp/key.pem $TARGETDIR/file.pem + cp $DIR/cert.pem $TARGETDIR/server.pem + cp $DIR/key.pem $TARGETDIR/file.pem chmod 400 $TARGETDIR/server.pem $TARGETDIR/file.pem fi if [ $DO_CLIENT = yes ] then - cp /var/tmp/cert.pem $TARGETDIR/client.pem + cp $DIR/cert.pem $TARGETDIR/client.pem chmod 400 $TARGETDIR/client.pem fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor