-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
18 lines (12 loc) · 652 Bytes
/
Copy pathREADME
File metadata and controls
18 lines (12 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# create a new docker container
docker build -t fips-patch:1 docker/
# build https.go (it will automatically run the Makefile)
sudo docker run --rm -v$(pwd):$(pwd) -w $(pwd) fips-patch:1 --platforms linux/amd64
# generate certs for https endpoint
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem -config cert.conf
# start https endpoint
python3 ./simple-https-server.py &
# run https
./https
# if you rebuild https with the base docker, it will fail https will fail
sudo docker run --rm -v$(pwd):$(pwd) -w $(pwd) docker.elastic.co/beats-dev/golang-crossbuild:1.24.2-main-debian11-fips --platforms linux/amd64