mirror of
https://github.com/bvanroll/college-pentesting.git
synced 2025-08-29 12:02:46 +00:00
pls groot genoeg
This commit is contained in:
12
verb/binary/attemp2/fs/cpio/etc_ro/gensslkey.sh
Executable file
12
verb/binary/attemp2/fs/cpio/etc_ro/gensslkey.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# re-generate SSL Server Keys
|
||||
cd /etc_ro
|
||||
mkdir /usr/local
|
||||
mkdir /usr/local/ssl
|
||||
cp openssl.cnf /usr/local/ssl
|
||||
openssl genrsa -out serverkey.pem 1024
|
||||
openssl req -new -sha256 -x509 -keyout serverkey.pem -out servercert.pem -days 1825 -newkey rsa:1024 -nodes -subj "/C=TW/ST=Taiwan/L=Taipie/O=D-LINK/OU=DHPD Dept./CN=www.dlink.com"
|
||||
#export SAN=DNS:127.0.0.1,DNS:Current's IP,DNS=DDNS Host Name
|
||||
#openssl req -new -sha256 -x509 -extensions v3_req -keyout serverkey.pem -out servercert.pem -days 1825 -newkey rsa:1024 -nodes -subj "/C=TW/ST=Taiwan/L=Taipie/O=D-LINK/OU=DHPD Dept./CN=www.dlink.com"
|
||||
#openssl x509 -text -in /etc_ro/servercert.pem
|
||||
cd /
|
Reference in New Issue
Block a user