@@ -63,18 +63,8 @@ httplib.cc : ../httplib.h
63
63
python3 ../split.py -o .
64
64
65
65
cert.pem :
66
- openssl genrsa 2048 > key.pem
67
- openssl req -new -batch -config test.conf -key key.pem | openssl x509 -days 3650 -req -signkey key.pem > cert.pem
68
- openssl req -x509 -config test.conf -key key.pem -sha256 -days 3650 -nodes -out cert2.pem -extensions SAN
69
- openssl genrsa 2048 > rootCA.key.pem
70
- openssl req -x509v1 -new -batch -config test.rootCA.conf -key rootCA.key.pem -days 1024 > rootCA.cert.pem
71
- openssl genrsa 2048 > client.key.pem
72
- openssl req -new -batch -config test.conf -key client.key.pem | openssl x509 -days 370 -req -CA rootCA.cert.pem -CAkey rootCA.key.pem -CAcreateserial > client.cert.pem
73
- openssl genrsa -passout pass:test123! 2048 > key_encrypted.pem
74
- openssl req -new -batch -config test.conf -key key_encrypted.pem | openssl x509 -days 3650 -req -signkey key_encrypted.pem > cert_encrypted.pem
75
- openssl genrsa -aes256 -passout pass:test012! 2048 > client_encrypted.key.pem
76
- openssl req -new -batch -config test.conf -key client_encrypted.key.pem -passin pass:test012! | openssl x509 -days 370 -req -CA rootCA.cert.pem -CAkey rootCA.key.pem -CAcreateserial > client_encrypted.cert.pem
77
- # c_rehash .
66
+ ./gen-certs.sh
78
67
79
68
clean :
80
69
rm -f test test_split test_proxy server_fuzzer * .pem * .0 * .o * .1 * .srl httplib.h httplib.cc
70
+
0 commit comments