monkey/monkey_island/windows/create_certificate.bat

4 lines
389 B
Batchfile
Raw Normal View History

2015-09-29 22:01:09 +08:00
C:\OpenSSL-Win64\bin\openssl.exe genrsa -out cc\server.key 1024
C:\OpenSSL-Win64\bin\openssl.exe req -new -config C:\OpenSSL-Win64\bin\openssl.cfg -key cc\server.key -out cc\server.csr -subj "/C=GB/ST=London/L=London/O=Global Security/OU=Monkey Department/CN=monkey.com"
2015-09-29 22:01:09 +08:00
C:\OpenSSL-Win64\bin\openssl.exe x509 -req -days 366 -in cc\server.csr -signkey cc\server.key -out cc\server.crt
pause