Loading the key file "by hand"

For some reason, the previous method of letting the openssl functions
to handle the file loading started to fail randomly, so to avoid this
I decided to get the key file contents beforehand if the parameter
is an existing file.
Merge branch 'master' into develop
Code style changes to comply with PSR 2