Skip to content

Instantly share code, notes, and snippets.

@charlietfl
Forked from turtlepod/make-cert.bat
Created May 23, 2021 15:42
Show Gist options
  • Save charlietfl/71e50ab378d47ca8c664a40de6263885 to your computer and use it in GitHub Desktop.
Save charlietfl/71e50ab378d47ca8c664a40de6263885 to your computer and use it in GitHub Desktop.
@echo off
set /p domain="Enter Domain: "
set OPENSSL_CONF=../conf/openssl.cnf
if not exist .\%domain% mkdir .\%domain%
..\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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment