as3crypto PEM.readRSAPublicKey returns null
- by www.jefferyfernandez.id.au
I am trying to implement a bit of encryption in my Air application while communication with a PHP backend server. For this purpose I am using as3crypto library and I can't read the public key to make the encryption possible. Here is my action script code:
var rsa:RSAKey = PEM.readRSAPublicKey(this.readApplicationFileContents('server.crt'));
if (…