Why I can't use openssl decrypt command to decrypt an encrypted string from RHEL7?

Solution Verified - Updated -

Issue

  • Facing the below error when I use openssl to decrypt an encrypted string from RHEL7 in RHEL8.
bad decrypt
140480067479360:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:643:

Environment

  • Red Hat Enterprise Linux 7 and openssl 1.0.2k.
  • Red Hat Enterprise Linux 8 and openssl 1.1.1k.

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