Moved OpenSSL execution into seperate function to avoid code duplication.
Moved OpenSSL execution into seperate function to avoid code duplication.

elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw,elabftw/elabftw