2015-12-02 19:32:21 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd /var/monkey_island
|
|
|
|
openssl genrsa -out cc/server.key 1024
|
2015-12-07 23:05:01 +08:00
|
|
|
openssl req -new -key cc/server.key -out cc/server.csr -subj "/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com"
|
2015-12-02 19:32:21 +08:00
|
|
|
openssl x509 -req -days 366 -in cc/server.csr -signkey cc/server.key -out cc/server.crt
|