The problem was that there was a passphrase on the key file. Using the mentioned scripts I was forced add a passphase of at least 4 characters. I solved it by executing the following command:
openssl rsa -in cakey.pem -out cakey_nopass.pem
And uploading the new cakey_nopass.pem file without the passphrase.