How to encrypt a file with openssl des3 on RHEL8 and to decrypt it on RHEL7

Solution Verified - Updated -

Issue

  • I tried to encrypt a file on Red Hat Enterprise Linux 8 as below.
# openssl des3 -pass pass:0123456789 -in test.txt -out test.txt.des3
  • After copying it into Red Hat Enterprise Linux 7 server, I got an error to decrypt it after I input a correct password.
# openssl des3 -d -in test.txt.des3 -out test.txt

Environment

Red Hat Enterprise Linux 8
Red Hat Enterprise Linux 7

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