Last active
September 21, 2018 22:44
-
-
Save jwv/884e426e03328ec276cf2d412c6addf8 to your computer and use it in GitHub Desktop.
CMD - Create SSL Cert NGINX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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