whichopensslcnf again has an outdated regex

Bug #1932045 reported by Leroy Tennison
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
easy-rsa (Ubuntu)
New
Undecided
Unassigned

Bug Description

Previous bug 992012 has surfaced again because openssl is now version 1.1.1, line 10 of whichopensslcnf (easy-rsa 2.2.2-2) fails on Ubuntu 18.04 LTS with:

(source vars;whichopensslcnf bogus)

bogus/openssl.cnf
**************************************************************
  No bogus/openssl.cnf file could be found
  Further invocations will fail
**************************************************************

The current line 10 reads:

    elif $OPENSSL version | grep -E "1\.0\.[[:digit:]][[:alnum:]]?" > /dev/null; then
                                        ^

Note position of caret above, this is the bug

The "fix" I used is:

    elif $OPENSSL version | grep -E "1\.[01]\.[[:digit:]][[:alnum:]]?" > /dev/null; then
                                        ^
Again, not the caret above

If this is an acceptable fix, is the openssl-1.0.0.cnf supplied with easy-rsa still good for openssl 1.1.1?

Revision history for this message
Leroy Tennison (ltennison) wrote :

Oops, whichopensslcnf doesn't take a parameter - the output when run without a parameter reads:

/openssl.cnf
**************************************************************
  No /openssl.cnf file could be found
  Further invocations will fail
**************************************************************

The rest of the bug is correct.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.