Subversion Repositories ALCASAR

Rev

Rev 64 | Rev 247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 64 Rev 139
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-CA.sh 64 2010-04-08 20:01:24Z franck $
2
# $Id: alcasar-CA.sh 139 2010-05-26 21:37:30Z richard $
3
 
3
 
4
# alcasar-CA.sh
4
# alcasar-CA.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
#
7
#
Line 235... Line 235...
235
 echo "- Certificat du serveur : " >> $FIC_PARAM
235
 echo "- Certificat du serveur : " >> $FIC_PARAM
236
 echo "    Certificat = $SRVCERT" >> $FIC_PARAM
236
 echo "    Certificat = $SRVCERT" >> $FIC_PARAM
237
 echo "    Clée privée = $SRVKEY" >> $FIC_PARAM
237
 echo "    Clée privée = $SRVKEY" >> $FIC_PARAM
238
 [ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs
238
 [ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs
239
 rm -f $DIR_WEB/certs/*
239
 rm -f $DIR_WEB/certs/*
240
 ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.pem
240
 ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.crt
241
 ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.pem
241
 ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.crt
242
 rm -rf $DIR_TMP
242
 rm -rf $DIR_TMP
243
 exit 0
243
 exit 0
244
else
244
else
245
 echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM
245
 echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM
246
 exit 1
246
 exit 1