Unable to Load Private Key

After create my own certificates with mikrotik , I’m trying to export it to ovpn but I get this error.

*I tried changin charset
*Different computer


“C:\Program Files\OpenVPN\bin\openssl.exe” rsa -in cert_export_client1.crt -out cert_export_client1.key
unable to load Private Key
5156:error:0906D06C:PEM routines:PEM_read_bio:no start line:crypto/pem/pem_lib.c:686:Expecting: ANY PRIVATE KEY

file format ( .key )

-----BEGIN ENCRYPTED PRIVATE KEY-----
{many characters}
-----END ENCRYPTED PRIVATE KEY-----


Any idea?

Thanks you.

And is there key block in source file, i.e. cert_export_client1.crt?

cert_export_client1.crt has public key
cert_export_client1.key has private key

nothing else

And what exactly are you trying to do? I don’t remember openssl commands, but it looks like you’re trying to convert key from crt file to the other one, which doesn’t make sense.

You’re right, I check it up and no logic on this command.

rsa -in file.key -out file_decrypted.key

Thanks you :slight_smile: