openssl dhparam: -out option is only working depending on the position

Solution Verified - Updated -

Issue

  • In Red Hat Enterprise Linux (RHEL) 8, openssl dhparam has become position dependent.
    In RHEL 7 the following used to work and produced the expected result:

    $ openssl dhparam -text -5 512 -out ./dh512.pem
    Generating DH parameters, 512 bit long safe prime, generator 5
    This is going to take a long time
    [ ... ]
    $ cat ./dh512.pem
    DH Parameters: (512 bit)
    [ ... ]
    

    The same command in RHEL 8 doesn't work as expected:

    $ openssl dhparam -text -5 512 -out ./dh512.pem
    Generating DH parameters, 512 bit long safe prime, generator 5
    This is going to take a long time
    [ ... ]
    $ cat ./dh512.pem
    cat: ./dh512.pem: No such file or directory
    

Environment

  • Red Hat Enterprise Linux (RHEL) 8

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