blob: ef923cc7f6daba50825ec6c83617050ebdffce7a (
plain) (
tree)
|
|
#!/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
|