This is an alpine based openssl. I created this to allow me to create certificates without the need to install in my host OS.
example run: (assumed there is a local directory named cert)
docker run -it --rm -v $PWD/cert:/cert ragetti/openssl genrsa -out /cert/private.key 2048
docker run -it --rm -v $PWD/cert:/cert ragetti/openssl req -newkey rsa:2048 -nodes -keyout /cert/private.key -new -out /cert/cert.csr
docker run -it --rm -v $PWD/cert:/cert ragetti/openssl -key /cert/private.key req -sha256 -x509 -days 365 -out /cert/cert.crt
docker run -it --rm -v $PWD/cert:/cert ragetti/openssl req -newkey rsa:2048 -nodes -keyout /cert/private.key -sha256 -x509 -days 365 -out /cert/cert.crt
docker run -it --rm -v $PWD/cert:/cert ragetti/openssl -key /cert/private.key req -outform PEM -sha256 -x509 -days 365 -out /cert/cert.pem