Command used to generate the self-signed certificate: cd
to proxy/
and
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nginx-selfsigned.key -out nginx-selfsigned.crt
Once you have the certificate, just run ./build_and_run.sh
.
To export the certificate to .pfx
, just run:
openssl pkcs12 -export -out nginx-selfsigned.pfx -inkey nginx-selfsigned.key -in nginx-selfsigned.crt
Credits to Miladev95's article and kubernetesway's .conf file.