Subversion Repositories ALCASAR

Rev

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

Rev 2813 Rev 2814
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2813 2020-04-26 21:26:32Z rexy $
2
#  $Id: alcasar.sh 2814 2020-04-27 22:02:20Z rexy $
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is a Free and open source NAC created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
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
#  team@alcasar.net
7
#  team@alcasar.net
Line 756... Line 756...
756
## - Creating the CA and the server certificate (lighttpd)      ##
756
## - Creating the CA and the server certificate (lighttpd)      ##
757
##################################################################
757
##################################################################
758
CA()
758
CA()
759
{
759
{
760
	$DIR_DEST_BIN/alcasar-CA.sh
760
	$DIR_DEST_BIN/alcasar-CA.sh
-
 
761
	chmod 755 /etc/pki/
761
	chown root:apache /etc/pki/CA; chmod 750 /etc/pki/CA
762
	chown root:apache /etc/pki/CA; chmod 750 /etc/pki/CA
762
	chmod 640 /etc/pki/CA/*
763
	chmod 640 /etc/pki/CA/*
763
	chown root:root /etc/pki/CA/private; chmod 700 /etc/pki/CA/private
764
	chown root:root /etc/pki/CA/private; chmod 700 /etc/pki/CA/private
764
	chmod 600 /etc/pki/CA/private/*
765
	chmod 600 /etc/pki/CA/private/*
765
	chown -R root:apache /etc/pki/tls/private; chmod 750 /etc/pki/tls/private
766
	chown -R root:apache /etc/pki/tls/private; chmod 750 /etc/pki/tls/private
766
	chmod 640 /etc/pki/tls/private/*
767
	chmod 640 /etc/pki/tls/private/*
-
 
768
	chmod 644 /etc/pki/tls/certs/* # "freshclam" need to access to that bundle
767
} # End of CA()
769
} # End of CA()
768
 
770
 
769
###################################################
771
###################################################
770
##                  Function "ACC"               ##
772
##                  Function "ACC"               ##
771
## - copy ALCASAR Control Center (ACC) files     ##
773
## - copy ALCASAR Control Center (ACC) files     ##