phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

Can't unlock signing keys through PhoneGap Build Write API #87

Closed alainr345 closed 11 years ago

alainr345 commented 11 years ago

Having our working automatized app build process (through Ant) for some time now, we added what we tought were the necessary steps to adhere to the new so-called "signing rules" of December 12th, 2012. We left that sleeping for a month. Coming back to it lately we could not make it work yet. Thinking it was an Ant glitch in the way, we then tested directly with Curl. So, if we do something along Mr. Lunny's documentation: curl -u andrew.lunny@nitobi.com -d 'data={"password":"password1"}' -X PUT https://build.phonegap.com/api/v1/key... which is like: curl --insecure -u XXX:YYY -d 'data={"password":"ZZZ"}' -X PUT https://build.phonegap.com/api/v1/key... we get the expected JSON-formatted answer of the key details, but the key stays LOCKED. But if we manually unlock the key on the web site, then doing this will show the key as UNLOCKED: curl --insecure -u XXX:YYY -X GET https://build.phonegap.com/api/v1/key... We tried this also with our other platform keys (iOS/Android), with the same result. We are on Windows 7 curl 7.23.1 (x86_64-pc-win32) libcurl/7.23.1 OpenSSL/0.9.8r zlib/1.2.5 What is missing in our Write API call to actually unlock the key? A.R.

alainr345 commented 11 years ago

apps #103548 and #101400

amirudin commented 11 years ago

Related issue: http://community.phonegap.com/nitobi/topics/how_do_we_unlock_signing_keys_through_phonegap_build_write_api

wildabeast commented 11 years ago

This was an issue with encoding on Windows. Don't use single quotes, use double quotes and excapes:

curl -u andrew.lunny@nitobi.com -d "data={\"password\":\"password1\"}" -X PUT ...