The default message digest algorithm used by `openssl enc` has changed in RHEL8.

Solution Verified - Updated -

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 -d fails 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content