In stock Debian it appears there may be a permissions issue with the openssl commands in debian_tests.sh under certain conditions. The generated keys are written to the newly created directory under /opt. The new directory inherits permissions from the parent which is set to rwxr-x-r-x. So, the user must be root to write to the directory. I suspect the same is true for Redhat. Adding sudo to the commands should fix the issue and also allow it to remain working.
In stock Debian it appears there may be a permissions issue with the openssl commands in debian_tests.sh under certain conditions. The generated keys are written to the newly created directory under /opt. The new directory inherits permissions from the parent which is set to rwxr-x-r-x. So, the user must be root to write to the directory. I suspect the same is true for Redhat. Adding sudo to the commands should fix the issue and also allow it to remain working.
Do you mind if I submit a pull request for this?