#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"

cd ${DIR}/config/nginx/ssl.d && \
  openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 3650 -nodes -subj \
  "/C=XX/ST=RU/L=RU/O=WPS/OU=Dev/CN=test"