Complete lab 7 security implementation

This commit is contained in:
2026-11-26 22:26:21 +03:00
parent 20afc2c790
commit df47ebd9f1
89 changed files with 9765 additions and 53 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# lab7: собрать combined .pem для HAProxy (crt + key в одном файле)
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
C="$ROOT/infra/certs"
cat "$C/lb.crt" "$C/lb.key" > "$C/lb.pem"
chmod 644 "$C/lb.pem"
cat "$C/lb-client.crt" "$C/lb-client.key" > "$C/lb-client.pem"
chmod 644 "$C/lb-client.pem"
echo "Created: $C/lb.pem, $C/lb-client.pem (chmod 644 — HAProxy uid 99)"