forked from p34709852/monkey
18 lines
671 B
Batchfile
18 lines
671 B
Batchfile
@echo off
|
|
|
|
IF [%1] == [] (
|
|
set mydir=%cd%\
|
|
) ELSE (
|
|
set mydir=%~1%
|
|
)
|
|
|
|
echo Monkey Island folder: %mydir%
|
|
|
|
SET OPENSSL_CONF=%mydir%bin\openssl\openssl.cfg
|
|
copy "%mydir%windows\openssl.cfg" "%mydir%bin\openssl\openssl.cfg"
|
|
|
|
@echo on
|
|
|
|
"%mydir%bin\openssl\openssl.exe" genrsa -out "%mydir%cc\server.key" 1024
|
|
"%mydir%bin\openssl\openssl.exe" req -new -config "%mydir%bin\openssl\openssl.cfg" -key "%mydir%cc\server.key" -out "%mydir%cc\server.csr" -subj "/C=GB/ST=London/L=London/O=Global Security/OU=Monkey Department/CN=monkey.com"
|
|
"%mydir%bin\openssl\openssl.exe" x509 -req -days 366 -in "%mydir%cc\server.csr" -signkey "%mydir%cc\server.key" -out "%mydir%cc\server.crt" |