whichopensslcnf again has an outdated regex
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;whichopens
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\.
Note position of caret above, this is the bug
The "fix" I used is:
elif $OPENSSL version | grep -E "1\.[01]
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?
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.