-
Setup the environment
./setup.sh
-
Build the docker images
-
To build every available docker image, or every docker image of a specific TLS Libraries, use the
build.py
script (requirespython >=3.7
)# use --help to see the available options cd src/main/resources/images python3 build.py
-
To build only specific TLS Libraries, use the
-l
parameter of the build script. E.g.:python3 build.py -l matrixssl
-
You can specify multiple versions this way and also restrict the building to certain versions with a regex f.e.
cd src/main/resources/images python3 build.py -l matrixssl:3.* -l bearssl:0.6
-
- s2n: Docker image fails with a compilation error
- pyopenssl, python-gnutls, python-mbedtls, wolfssl_py: Docker images fail because of a version problem with python2 and python3
docker build --squash -t <image name> .
#without squash there are multiple layer.tar files
docker image save <image name> | tar x --wildcards -O "*/layer.tar" | tar t
docker run --rm -it --cap-add SYS_PTRACE <intermediary image name> /bin/sh
## ls, ldd, strace, ...
docker build --build-arg VERSION=0.5 -t bearssl .
docker run --rm -it -v cert-data:/cert/:ro,nocopy -p 127.0.0.42:<port on host>:<port of internal tls server> <image name> options...
docker run --rm -it -v /path/to/dir/:/cert/:ro,nocopy -p 127.0.0.42:<port on host>:<port of internal tls server> <image name> options...
docker run --rm -it -v cert-data:/cert/:ro,nocopy --network=host <image name> options...
docker ps
docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <CONTAINER ID>
openssl s_client -connect <ip>:<port>
docke container kill <CONTAINER ID>
docker images -f dangling=true
docker rmi -f $(docker images | grep none)
docker rmi -f $(docker images | grep -P "\d{3}MB")