Skip to content

Instantly share code, notes, and snippets.

@jwv
Last active September 21, 2018 22:44
Show Gist options
  • Select an option

  • Save jwv/884e426e03328ec276cf2d412c6addf8 to your computer and use it in GitHub Desktop.

Select an option

Save jwv/884e426e03328ec276cf2d412c6addf8 to your computer and use it in GitHub Desktop.
CMD - Create SSL Cert NGINX
@ECHO OFF
ECHO Creating SSL Cert...
set NGINX_HOME=C:\nginx114
set OPENSSL_HOME="C:\Program Files\OpenSSL-Win64\bin"
set PATH=%PHP_HOME%;%PATH%
openssl req -x509 -nodes -days 36500 -newkey rsa:4096 -keyout %NGINX_HOME%/ssl/%1.key -out %NGINX_HOME%/ssl/%1.crt
ECHO SSL Cert Created...
ECHO %NGINX_HOME%/conf/%1.key
ECHO %NGINX_HOME%/conf/%1.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment