The default message digest algorithm used by `openssl enc` has changed in RHEL8.
Issue
-
RHEL8 and RHEL7 or earlier have different encoding results with
openssl enc -e.### RHEL7 $ echo hello | openssl enc -e -aes-256-cbc -pass pass:pasSwoRd -base64 -nosalt 2> /dev/null pKshbnZ1yLIsK4YfSUOW6w== ### RHEL8 $ echo hello | openssl enc -e -aes-256-cbc -pass pass:pasSwoRd -base64 -nosalt 2> /dev/null ykEIEEJDq/xkgnykp6ZZpQ== -
Decoding with
openssl enc -dfails between different RHEL versions.
Environment
- Red Hat Enterprise Linux 8
- openssl-1.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.