Skip to content

Instantly share code, notes, and snippets.

@TheClio69
Forked from turtlepod/make-cert.bat
Created April 30, 2021 13:57
Show Gist options
  • Save TheClio69/d7ea7477cf3f28f304ab02f545b6ec96 to your computer and use it in GitHub Desktop.
Save TheClio69/d7ea7477cf3f28f304ab02f545b6ec96 to your computer and use it in GitHub Desktop.
@echo off
set /p domain="Enter Domain: "
set OPENSSL_CONF=../apache/conf/openssl.cnf
if not exist .\%domain% mkdir .\%domain%
..\apache\bin\openssl req -config cert.conf -new -sha256 -newkey rsa:2048 -nodes -keyout %domain%\server.key -x509 -days 3650 -out %domain%\server.crt
echo.
echo -----
echo The certificate was provided.
echo.
pause
@TheClio69
Copy link
Author

I have updated the path of "openssl.cnf" and "openssl.exe" files because they have changed with the new versions of xampp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment