Subversion Repositories ALCASAR

Rev

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

Rev 3135 Rev 3169
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 3135 2023-05-13 15:21:46Z rexy $
2
#  $Id: alcasar.sh 3169 2024-01-18 16:15:23Z rexy $
3
 
3
 
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
4
# ALCASAR is a Free and open source NAC (Network Access Controler) created by Franck BOUIJOUX (3abtux), Pascal LEVANT and Richard REY (Rexy)
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
5
# ALCASAR is based on a stripped Mageia (LSB) with the following open source softwares Coovachilli, freeradius, mariaDB, lighttpd, php, netfilter, e2guardian, ntpd, openssl, unbound, gammu, clamav, Ulog, fail2ban, vnstat, wkhtml2pdf, ipt_NETFLOW, NFsen and NFdump
6
# contact : info@alcasar.net
6
# contact : info@alcasar.net
7
 
7
 
Line 2080... Line 2080...
2080
# Remove potential old installers
2080
# Remove potential old installers
2081
	rm -rf /tmp/acme.sh-*
2081
	rm -rf /tmp/acme.sh-*
2082
# Extract acme.sh
2082
# Extract acme.sh
2083
	tar xzf ./conf/letsencrypt-client/acme.sh-*.tar.gz -C /tmp/
2083
	tar xzf ./conf/letsencrypt-client/acme.sh-*.tar.gz -C /tmp/
2084
	pwdInstall=$(pwd)
2084
	pwdInstall=$(pwd)
2085
	cd /tmp/acme.sh-* || { echo "Unable to find ACME directory"; exit 1; }
2085
	cd /tmp/acme.sh-* || { echo "Unable to find tmp ACME directory"; exit 1; }
2086
	acmesh_installDir="/opt/acme.sh"
2086
	acmesh_installDir="/opt/acme.sh"
2087
	acmesh_confDir="/usr/local/etc/letsencrypt"
2087
	acmesh_confDir="/usr/local/etc/letsencrypt"
2088
	acmesh_userAgent="ALCASAR"
2088
	acmesh_userAgent="ALCASAR"
2089
# Install acme.sh
2089
# Install acme.sh
2090
	./acme.sh --install \
2090
	./acme.sh --install \
Line 2093... Line 2093...
2093
		--certhome $acmesh_confDir/certs \
2093
		--certhome $acmesh_confDir/certs \
2094
		--accountkey $acmesh_confDir/ca/account.key \
2094
		--accountkey $acmesh_confDir/ca/account.key \
2095
		--accountconf $acmesh_confDir/data/account.conf \
2095
		--accountconf $acmesh_confDir/data/account.conf \
2096
		--useragent $acmesh_userAgent \
2096
		--useragent $acmesh_userAgent \
2097
		--nocron \
2097
		--nocron \
-
 
2098
		--set-default-ca  --server letsencrypt \
2098
		> /dev/null
2099
		> /dev/null
2099
	if [ $? -ne 0 ]; then
2100
	if [ $? -ne 0 ]; then
2100
		echo "Error during installation of Let's Encrypt client (acme.sh)."
2101
		echo "Error during installation of Let's Encrypt client (acme.sh)."
2101
	fi
2102
	fi
2102
# Create configuration file
2103
# Create configuration file