- Docker Hub: hugojosefson/openssl
- Auto-updated whenever alpine is updated.
- Repository: https://github.com/hugojosefson/docker-openssl
- Dockerfile: https://github.com/hugojosefson/docker-openssl/blob/master/Dockerfile
- Base Image: alpine
docker run --rm -it hugojosefson/openssl
docker run --rm -it \
hugojosefson/openssl \
rand -base64 32
OpenSSL asks for details and exports the certificate signing request in the current directory as cert-request.csr
, and the private key as privkey.pem
:
docker run --rm -it \
-v $(pwd):/export \
-w /export \
-u $(id -u):$(id -g) \
hugojosefson/openssl \
req -nodes -new -newkey rsa:2048 -sha256 -out /export/cert-request.csr
Read the OpenSSL documentation for further information.