Complete lab 7 security implementation
This commit is contained in:
Executable
+13
@@ -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)"
|
||||
Reference in New Issue
Block a user