tvl-depot/nginx/generate-dhparam

15 lines
238 B
Text
Raw Normal View History

2016-03-01 01:11:36 +01:00
#!/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