Santiago Ignacio Poli
Santiago Ignacio Poli

Reputation: 1045

Android Market In-App Billing Private Key (RSA)

I want to implement In-App Billing in my application. I have a private key (provided by Google) to verify requests, but i need to put it inside a .pem file. The problem is that when I paste it in the form:

-----BEGIN RSA PRIVATE KEY-----
------------<MY KEY>----------
-----END RSA PRIVATE KEY-----

It says that is an invalid certificate.

How can I transform the Key string in a valid .pem file? Thanks.

Upvotes: 0

Views: 1443

Answers (1)

Nikolay Elenkov
Nikolay Elenkov

Reputation: 52936

What is provided by Google is not private but a public key. The private key resides on Google's servers. What language/libraries are you using? You probably need a PEM public key file, which goes something like this:

-----BEGIN PUBLIC KEY-----
<PASTE HERE>
-----END PUBLIC KEY-----

Upvotes: 1

Related Questions