RSA private keys cannot be used with cipher.ENCRYPT_MODE
Posted: Wed Aug 12, 2015 12:26 am
I am using Android M (Developer Preview) and I have been unable to connect to my OpenVPN server since I upgraded to Preview 2 (MPZ79M).
The connection works fine using OpenVPN client on Windows. When I connect using Android, I get the following error message:
External PKI Error: java.security.Invalid-KeyException: RSA private keys cannot be used with cipher.ENCRYPT_MODE. Only RSA public key supported for this mode.
It seems java is blocking the process. I know this key was working before this update, and by googling this error I see some posts back from 2012.
Is this something new that android implemented?
Any way to get around it?
If someone want, I can share a temporary pfx key.
The connection works fine using OpenVPN client on Windows. When I connect using Android, I get the following error message:
External PKI Error: java.security.Invalid-KeyException: RSA private keys cannot be used with cipher.ENCRYPT_MODE. Only RSA public key supported for this mode.
It seems java is blocking the process. I know this key was working before this update, and by googling this error I see some posts back from 2012.
Is this something new that android implemented?
Any way to get around it?
If someone want, I can share a temporary pfx key.