Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Last active March 5, 2025 08:37
Show Gist options
  • Save turtlepod/e94928cddbfc46cfbaf8c3e5856577d0 to your computer and use it in GitHub Desktop.
Save turtlepod/e94928cddbfc46cfbaf8c3e5856577d0 to your computer and use it in GitHub Desktop.

Revisions

  1. turtlepod revised this gist Apr 17, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion make-cert.bat
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ 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 365 -out %domain%\server.crt
    ..\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 -----
  2. turtlepod created this gist Mar 21, 2018.
    13 changes: 13 additions & 0 deletions make-cert.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    @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 365 -out %domain%\server.crt

    echo.
    echo -----
    echo The certificate was provided.
    echo.
    pause