Generate a server certificate signed by a CA
masterTo generate a server certificate, create an EC private key, generate a Certificate Signing Request (CSR) using the CA's subject information, and then sign that CSR using the CA's certificate and key.
# Note: $CERT_SUBJ must be defined (e.g., from the CA generation step)
openssl ecparam -name secp224r1 -genkey -noout -out server_key.pem
openssl req -new -sha256 -key server_key.pem -subj $CERT_SUBJ -out server.csr
openssl x509 -req -in server.csr -CA root_ca_cert.pem -CAkey root_ca_key.pem -CAcreateserial -out server_cert.pem -days 500 -sha256