2017-12-12 16:33:13 +08:00
|
|
|
@echo off
|
|
|
|
|
2017-12-12 17:34:51 +08:00
|
|
|
SET OPENSSL_CONF=windows\openssl.cfg
|
2017-12-12 16:33:13 +08:00
|
|
|
|
|
|
|
IF [%1] == [] (
|
|
|
|
set dir=%cd%\
|
|
|
|
) ELSE (
|
|
|
|
set dir=%1
|
|
|
|
REM - Remove double quotes -
|
|
|
|
set dir=%dir:"=%
|
|
|
|
)
|
|
|
|
|
|
|
|
echo Monkey Island folder: %dir%
|
|
|
|
|
|
|
|
@echo on
|
|
|
|
|
|
|
|
"%dir%bin\openssl\openssl.exe" genrsa -out "%dir%cc\server.key" 1024
|
|
|
|
"%dir%bin\openssl\openssl.exe" req -new -config "%dir%bin\openssl\openssl.cfg" -key "%dir%cc\server.key" -out "%dir%cc\server.csr" -subj "/C=GB/ST=London/L=London/O=Global Security/OU=Monkey Department/CN=monkey.com"
|
|
|
|
"%dir%bin\openssl\openssl.exe" x509 -req -days 366 -in "%dir%cc\server.csr" -signkey "%dir%cc\server.key" -out "%dir%cc\server.crt"
|