Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

version mismatch error

Started by Yuriy Markiv -   in API Authentication

Hi all,

Got "version mismatch" error when trying to use API KEY, API SECRET and private key.
I followed the manual https://developer.xero.com/documentation/advanced-docs/public-private-keypair/ and generated keys using

openssl genrsa -out privatekey.pem 1024
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
openssl pkcs12 -export -out public_privatekey.pfx -inkey privatekey.pem -in publickey.cer

I've uploaded it according to video https://youtu.be/Fu-D-c-3kf0

Now trying to use public_privatekey.pfx key to authenticate. Is it correct file to use? If yes, what else can cause this error?
Please advise.