Subversion Repositories ALCASAR

Rev

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

Rev 1705 Rev 1830
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-CA.sh 1705 2015-10-20 16:52:33Z richard $
2
# $Id: alcasar-CA.sh 1830 2016-04-20 07:22:43Z raphael.pion $
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 223... Line 223...
223
# Link certs in ALCASAR Control Center
223
# Link certs in ALCASAR Control Center
224
if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ];
224
if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ];
225
 then
225
 then
226
 [ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs
226
 [ -d $DIR_WEB/certs ] || mkdir -p $DIR_WEB/certs
227
 rm -f $DIR_WEB/certs/*
227
 rm -f $DIR_WEB/certs/*
228
 ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.crt
228
 ln -s $CACERT $DIR_WEB/certs/certificat_alcasar_ca.der
229
 ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.crt
229
 ln -s $SRVCERT $DIR_WEB/certs/certificat_alcasar.crt
230
 rm -rf $DIR_TMP
230
 rm -rf $DIR_TMP
231
 exit 0
231
 exit 0
232
else
232
else
233
 echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM
233
 echo "Problème lors de la création des certificats (cf. $DIR_TMP/openssl-log)" >> $FIC_PARAM