Skip to content

hugojosefson/docker-openssl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

OpenSSL on Alpine Linux

Examples

OpenSSL REPL

docker run --rm -it hugojosefson/openssl

Print some random data

docker run --rm -it \
  hugojosefson/openssl \
  rand -base64 32

Create an SSL Certificate

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.

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%