From 129cd1194040be1c64f8c027d972ba8e13d79182 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 8 Sep 2023 11:34:00 -0500 Subject: [PATCH] Add Check The Installed OpenSSL Version as a Unix TIL --- README.md | 3 ++- unix/check-the-installed-openssl-version.md | 23 +++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 unix/check-the-installed-openssl-version.md diff --git a/README.md b/README.md index 23bc74a..02bb7a5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://crafty-builder-6996.ck.page/e169c61186). -_1336 TILs and counting..._ +_1337 TILs and counting..._ --- @@ -1249,6 +1249,7 @@ _1336 TILs and counting..._ - [Check If Command Is Executable Before Using](unix/check-if-command-is-executable-before-using.md) - [Check SSH Key Fingerprints Of Known Hosts](unix/check-ssh-key-fingerprints-of-known-hosts.md) - [Check The Current Working Directory](unix/check-the-current-working-directory.md) +- [Check The Installed OpenSSL Version](unix/check-the-installed-openssl-version.md) - [Clear The Screen](unix/clear-the-screen.md) - [Command Line Length Limitations](unix/command-line-length-limitations.md) - [Compare Two Variables In A Bash Script](unix/compare-two-variables-in-a-bash-script.md) diff --git a/unix/check-the-installed-openssl-version.md b/unix/check-the-installed-openssl-version.md new file mode 100644 index 0000000..8dc14b6 --- /dev/null +++ b/unix/check-the-installed-openssl-version.md @@ -0,0 +1,23 @@ +# Check The Installed OpenSSL Version + +Typically with command line tools, I can use a `--version` or `-v` flag with +the command to get it to output the current version. This is not the case with +`openssl`. + +When I do this: + +```bash +$ openssl --version +``` + +I get an Invalid Command message and then a bunch of subcommands are displayed. + +One of those subcommands listed under _Standard Commands_ is the `version` +command. This is what I can use to list the version. + +```bash +$ openssl version -v +LibreSSL 2.8.3 +``` + +See `man openssl` for more details.