Subversion Repositories ALCASAR

Rev

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

Rev 2488 Rev 2554
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-CA.sh 2488 2018-02-25 14:53:54Z lucas.echard $
2
# $Id: alcasar-CA.sh 2554 2018-05-20 11:02:46Z lucas.echard $
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 217... Line 217...
217
rm -f $SRVCERT
217
rm -f $SRVCERT
218
echo "*********SRVCERT*********" >> $DIR_TMP/openssl-log
218
echo "*********SRVCERT*********" >> $DIR_TMP/openssl-log
219
openssl ca -config $DIR_TMP/ssl.conf -name AlcasarCA -batch -days $SRVCERT_LIFETIME -in $SRVREQ -out $SRVCERT 2>> $DIR_TMP/openssl-log
219
openssl ca -config $DIR_TMP/ssl.conf -name AlcasarCA -batch -days $SRVCERT_LIFETIME -in $SRVREQ -out $SRVCERT 2>> $DIR_TMP/openssl-log
220
rm -f $SRVREQ
220
rm -f $SRVREQ
221
cp -f $SRVCERT $SRVCHAIN  # in order to simplify the official intranet certificate import process
221
cp -f $SRVCERT $SRVCHAIN  # in order to simplify the official intranet certificate import process
-
 
222
 
222
cat $SRVKEY $SRVCERT > $SRVPEM
223
(cat $SRVKEY; echo; cat $SRVCERT) > $SRVPEM
-
 
224
 
223
chmod a+r $CACERT $SRVCERT $SRVCHAIN
225
chmod a+r $CACERT $SRVCERT $SRVCHAIN
224
 
226
 
225
# Link certs in ALCASAR Control Center
227
# Link certs in ALCASAR Control Center
226
if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ];
228
if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ];
227
	then
229
	then