Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Partner Program >

Partner Application Connection requiring password?

Started by André Tanguy -   in Partner Program

Hi there,

We're using the Xeroizer gem by Wayne Robinson (https://github.com/waynerobinson/xeroizer) to connect to the parther application. We've generated the p12 certificate, then completed the following steps:

openssl pkcs12 -in entrust-client.p12 -clcerts -nokeys -out entrust-cert.pem
openssl pkcs12 -in entrust-client.p12 -nocerts -out entrust-private.pem
openssl rsa -in entrust-private.pem -out entrust-private-nopass.pem

Then when we try to run the following, we get an error:

client = Xeroizer::PartnerApplication.new(
YOUR_OAUTH_CONSUMER_KEY,
YOUR_OAUTH_CONSUMER_SECRET,
"/path/to/privatekey.pem",
"/path/to/entrust-cert.pem",
"/path/to/entrust-private-nopass.pem"
)
request_token = client.request_token(:oauth_callback => 'http://subdomain.domain.com/oauth/callback')

At this stage, it asks for the following

"Enter PEM pass phrase:"

If I leave blank then we receive OpenSSL::PKey::RSAError Exception: Neither PUB key nor PRIV key:: nested asn1 error

For some reason, it wants us to enter a password. We can do it on our local machines but it won't work on our production servers. Any ideas?

All the best
André
Official Xero Reply
Xero will begin to deprecate Entrust Certificates for Xero Partner Apps in 2017

http://developer.xero.com/documentation/advanced-docs/entrust-certificate-deprecation/
 

Sidney Maestre (Community Manager)