Use M2Crypto to get PEM public key.