Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 673 2011-07-11 20:26:36Z richard $
|
2 |
# $Id: alcasar.sh 675 2011-07-18 21:24:19Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.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 628... |
Line 628... |
628 |
$DIR_DEST_BIN/alcasar-CA.sh
|
628 |
$DIR_DEST_BIN/alcasar-CA.sh
|
629 |
FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl*`
|
629 |
FIC_VIRTUAL_SSL=`find /etc/httpd/conf -type f -name *default_ssl*`
|
630 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] || cp $FIC_VIRTUAL_SSL /etc/httpd/conf/vhosts-ssl.default
|
630 |
[ -e /etc/httpd/conf/vhosts-ssl.default ] || cp $FIC_VIRTUAL_SSL /etc/httpd/conf/vhosts-ssl.default
|
631 |
$SED "s?localhost.crt?alcasar.crt?g" $FIC_VIRTUAL_SSL
|
631 |
$SED "s?localhost.crt?alcasar.crt?g" $FIC_VIRTUAL_SSL
|
632 |
$SED "s?localhost.key?alcasar.key?g" $FIC_VIRTUAL_SSL
|
632 |
$SED "s?localhost.key?alcasar.key?g" $FIC_VIRTUAL_SSL
|
- |
|
633 |
$SED "s^#SSLCertificateChainFile.*?SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt?" $FIC_VIRTUAL_SSL
|
633 |
chown -R root:apache /etc/pki
|
634 |
chown -R root:apache /etc/pki
|
634 |
chmod -R 750 /etc/pki
|
635 |
chmod -R 750 /etc/pki
|
635 |
} # End AC ()
|
636 |
} # End AC ()
|
636 |
|
637 |
|
637 |
##########################################################################################
|
638 |
##########################################################################################
|