Compare commits
6 Commits
b67d93e60e
...
9ce80067c4
| Author | SHA1 | Date |
|---|---|---|
|
|
9ce80067c4 | |
|
|
7b6d0cfe81 | |
|
|
2c0c930f32 | |
|
|
7749fa6d61 | |
|
|
42f0ab1488 | |
|
|
a15bb78873 |
|
|
@ -16,7 +16,7 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
|
|||
"section": "SYSTEM",
|
||||
"items": [
|
||||
{"label": "Edit main cron", "cmd": "crontab -e", "bin": "crontab"},
|
||||
{"label": "Restart service", "cmd": "/etc/init.d/\${name} restart"},
|
||||
{"label": "Restart service", "cmd": "/etc/init.d/service_name restart"},
|
||||
{"label": "Display journal", "cmd": "journalctl -xe", "bin": "journalctl"},
|
||||
{"label": "Reload .bashrc", "cmd": "source ~/.bashrc"}
|
||||
]
|
||||
|
|
@ -45,7 +45,8 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
|
|||
"items": [
|
||||
{"label": "Port debug", "cmd": "ss -tulnw | column -t"},
|
||||
{"label": "Port tcp opened ext", "cmd": "ss -tlnw | grep -v -E '(127\.0\.0\.1|::1)' | column -t"},
|
||||
{"label": "Unlock 1024 port for not Root user", "cmd": "setcap 'cap_net_bind_service=+ep' /usr/lib/jellyfin/bin/jellyfin"}
|
||||
{"label": "Unlock 1024 port for not Root user", "cmd": "setcap 'cap_net_bind_service=+ep' /usr/lib/jellyfin/bin/jellyfin"},
|
||||
{"label": "Test SSL Validity", "cmd" : "openssl x509 -in /var/lib/step-ca/.step/certs/root_ca.crt -noout -dates"}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -66,7 +67,6 @@ CMD_LIST_CONFIG_JSON=$(cat <<EOF
|
|||
{"label": "Restart VM", "cmd": "pct stop ID && pct start ID","bin": "pct"}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
EOF
|
||||
)
|
||||
|
|
|
|||
|
|
@ -34,4 +34,4 @@ color_secure() {
|
|||
|
||||
|
||||
# Les Asci sympas :
|
||||
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀 🔧
|
||||
# 🐧 🌀 🍥 ✅ ❎ ❌ ⭕ ℹ️🔄🚨🆔 🆗 🆕 🆙 ✨ 🚀 🔧 👍
|
||||
|
|
@ -644,7 +644,7 @@ EOF"
|
|||
do_deb_sys_cert_install_ca_server(){
|
||||
local full_command="${WELCOME_SCRIPT_PATH}/script/ca_server_renew.sh"
|
||||
|
||||
msg_info "Ajout des drtois d execution du script"
|
||||
msg_info "Ajout des droits d execution du script"
|
||||
chmod +x "$full_command"
|
||||
|
||||
msg_info "Renouvellement du certificat"
|
||||
|
|
@ -986,7 +986,7 @@ do_deb_sys_cert_install(){
|
|||
# Installation du cron
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
update_cron_marker "$CONFIG_DEB_INSTALL_DEFAULT_CA_CRON" "0 0 1 * * $full_command"
|
||||
update_cron_marker "$CONFIG_DEB_INSTALL_DEFAULT_CA_CRON" "0 0 * * 0 $full_command"
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Redémarrage final (sécurité)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
systemctl stop step-ca
|
||||
step certificate create "Frogg.home CA Intermediate CA" /var/lib/step-ca/.step/certs/intermediate_ca.crt /var/lib/step-ca/.step/secrets/intermediate_ca_key --profile intermediate-ca --ca /var/lib/step-ca/.step/certs/root_ca.crt --ca-key /var/lib/step-ca/.step/secrets/root_ca_key --not-after 87600h --ca-password-file /var/lib/step-ca/.step/password.txt --password-file /var/lib/step-ca/.step/password.txt --force
|
||||
|
||||
step certificate create "Frogg.home CA Intermediate CA" /var/lib/step-ca/.step/certs/intermediate_ca.crt /var/lib/step-ca/.step/secrets/intermediate_ca_key \
|
||||
--profile intermediate-ca \
|
||||
--ca /var/lib/step-ca/.step/certs/root_ca.crt \
|
||||
--ca-key /var/lib/step-ca/.step/secrets/root_ca_key \
|
||||
--not-after 8760h \
|
||||
--ca-password-file /var/lib/step-ca/.step/password.txt \
|
||||
--password-file /var/lib/step-ca/.step/password.txt \
|
||||
--force
|
||||
|
||||
chown -R step:step /var/lib/step-ca/
|
||||
systemctl start step-ca
|
||||
Loading…
Reference in New Issue