Sign inSign up

dlabc/openssl

By dlabc

•Updated about 6 years ago

Fix openssl version on top of Alpine linux image

0

84

dlabc/openssl repository overview

dlab container

⁠OpenSSL on Alpine Linux

Small image base on alpine linux to use openssl

  • opnessl 1.1.1g - Alpine 3.12

⁠Installation

docker/podman pull dlab/openssl:tag

⁠Examples

⁠OpenSSL REPL

docker/podman run -it dlab/openssl

⁠Generate keys

docker/podman run -it --rm dlab/openssl opnessl enc -aes-256-cbc -k <pass> -P -md sha256 -nosalt -pbkdf2

⁠AES encrypt

target=<directory containg the file to encrypt> docker/podman run -it --rm -v $target:/export dlab/openssl aes-256-cbc -e -in <file> -out <file_enc> -K <key> -iv <iv>

Where key and iv are generated during the keys step.

Read the OpenSSL documentation⁠ for further informations.

⁠AES decrypt

target=<directory containg the file to encrypt> docker/podman run -it --rm -v $target:/export dlab/openssl aes-256-cbc -d -in <file_enc> -out <file> -K <key> -iv <iv>

Where key and iv are generated during the keys step.

Read the OpenSSL documentation⁠ for further informations.

⁠interactive shell

docker/podman run -it --entrypoint /bin/ash dlab/openssl

Tag summary

Content type

-

Digest

Size

-

Last updated

about 6 years ago

docker pull dlabc/openssl:1.1.1