tvl-depot/nginx/generate-dhparam
2016-03-01 01:11:36 +01:00

14 lines
238 B
Bash
Executable file

#!/bin/bash
readonly dhparam=$(openssl dhparam 2048 | base64 -w0)
echo "Inserting new DH parameter ..."
kubectl replace --force -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
name: nginx-dhparam
data:
tls.dhparam: ${dhparam}
EOF