#!/bin/sh
# Generate self-signed development certificate for GotekBackend
# Usage: ./cert-gen.sh [password]
PASS=${1:-changeit}
mkdir -p certs
openssl req -x509 -nodes -days 365 -newkey rsa:2048   -subj "/CN=GotekBackendDev"   -keyout certs/server.key -out certs/server.crt
openssl pkcs12 -export -out certs/server.pfx -inkey certs/server.key -in certs/server.crt -password pass:$PASS
echo "Certificate generated at certs/server.pfx with password '$PASS'"
