This repository was archived by the owner on May 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
60 lines (53 loc) · 2.6 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
ssl2-server: rsa1024.pem bin/openssl-098
bin/openssl-098 s_server -ssl2 -accept 10200 -cert rsa1024.pem -debug -msg
ec-rsa-server: rsa1024.pem ecdsa384.pem bin/openssl-101
openssl s_server -tls1_2 -accept 10303 -cert ecdsa384.pem -dcert rsa1024.pem -debug -msg
098-server: rsa1024.pem dsa1024.pem bin/openssl-098
bin/openssl-098 s_server -cipher ALL -accept 10200 -cert rsa1024.pem -debug -msg
heartbleed-server: bleed-target.pem bin/openssl-101e
bin/openssl-101e s_server -tls1 -accept 10302 -cert bleed-target.pem -debug -msg
rsa1024.pem: rsa1024.key
openssl req -x509 -new -key rsa1024.key -subj '/C=BQ/L=Low Earth Orbit/OU=International Space Station/CN=localhost' -out rsa1024.crt -days 3653
cat rsa1024.key rsa1024.crt > rsa1024.pem
rm rsa1024.crt
rsa1024.key:
openssl genrsa -out rsa1024.key 1024
ecdsa384.pem: ecdsa384.key
openssl req -x509 -new -key ecdsa384.key -subj '/C=BQ/L=Low Earth Orbit/OU=International Space Station/CN=localhost' -out ecdsa384.crt -days 3653
cat ecdsa384.key ecdsa384.crt > ecdsa384.pem
rm ecdsa384.crt
ecdsa384.key:
openssl ecparam -name secp384r1 -genkey -out ecdsa384.key
dsa1024.pem: dsa1024.key
openssl req -x509 -new -key dsa1024.key -subj '/C=BQ/L=Low Earth Orbit/OU=International Space Station/CN=localhost' -out dsa1024.crt -days 3653
cat dsa1024.key dsa1024.crt > dsa1024.pem
rm dsa1024.crt
dsa1024.key:
openssl dsaparam -genkey 1024 -out dsa1024.key
bleed-target.key: bin/kg/kg.go
go run bin/kg/kg.go > bleed-target.key
bleed-target.pem: bleed-target.key
openssl req -x509 -new -key bleed-target.key -subj '/C=BQ/L=Low Earth Orbit/OU=International Space Station/CN=localhost' -out bleed-target.crt -days 3653
cat bleed-target.key bleed-target.crt > bleed-target.pem
rm bleed-target.crt
github-openssl:
git clone https://github.com/openssl/openssl.git github-openssl
bin/openssl-098: github-openssl
./build-openssl OpenSSL_0_9_8-stable openssl-098
bin/openssl-101: github-openssl
./build-openssl OpenSSL_1_0_1-stable openssl-101
bin/openssl-101e: github-openssl
./build-openssl OpenSSL_1_0_1e openssl-101e
bin/openssl-master: github-openssl
./build-openssl master openssl-master
bin/custom-openssl: openssl-latest
cd openssl-latest && ./config -DOPENSSL_DH_MAX_MODULUS_BITS=16000 no-shared && cd ..
cd openssl-latest && make -j 4 build_apps && cd ..
mv openssl-latest/apps/openssl bin/custom-openssl
openssl-latest: openssl-latest.tar.gz
mkdir temp
cd temp && tar -xf ../openssl-latest.tar.gz && cd ..
mv temp/openssl-* openssl-latest
rm -r temp
openssl-latest.tar.gz: Makefile
wget -qO openssl-latest.tar.gz https://openssl.org/source/openssl-1.1.0-pre5.tar.gz