16 lines
330 B
Makefile
16 lines
330 B
Makefile
|
|
CC ?= gcc
|
||
|
|
FLAGS = -lssl -lcrypto
|
||
|
|
|
||
|
|
.PHONY: run
|
||
|
|
run:
|
||
|
|
$(CC) $(FLAGS) cross_process_ssl_poc.c -g -O0 -o test
|
||
|
|
openssl req -x509 \
|
||
|
|
-newkey rsa:4096 \
|
||
|
|
-keyout key.pem \
|
||
|
|
-out cert.pem \
|
||
|
|
-sha256 -nodes \
|
||
|
|
-days 3650 \
|
||
|
|
-quiet \
|
||
|
|
-subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=example.com"
|
||
|
|
./test
|