[aerogear-dev] [aerogear-unified-push-server] Problem with ProdCerts branch iOS variant addition
Yavuz Selim YILMAZ
yavuzsel at buffalo.edu
Wed Jul 10 12:24:00 EDT 2013
Hi all,
I'm trying out the ProdCerts branch on aerogear-unified-push-server to enable AeroGear powered push notifications on my production iOS application.
When I am trying to add an iOS variant, I am getting:
HTTP/1.1 400 Bad Request
…
The request sent by the client was syntactically incorrect ().
…
The curl command I am using is here:
$curl -i -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: multipart/form-data" -F "developmentCertificate=@/Users/yavuz/Documents/Certificates.p12" -F "developmentPassphrase=pass" -X POST http://localhost:8080/ag-push/rest/applications/8055d0a9-ed30-463c-9ac3-baf8cee39ebc/iOS
As far as I could see, Bad Request is returned if developmentCertificate and/or developmentPassphrase is null (in my case, productionCertificate/Passphrase are already null). Therefore, in order to make sure my Certificates.p12 does not read null , I switched to master branch, and executed the following command successfully and add my variant:
$curl -i -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: multipart/form-data" -F "certificate=@/Users/yavuz/Documents/Certificates.p12" -F "passphrase=pass" -X POST http://localhost:8080/ag-push/rest/applications/688d0fe1-4cc2-4606-ab10-09660620b483/iOS
Any ideas why I might be getting this error, or any suggestions/directions are most appreciated.
Kind regards,
---
Yavuz Selim Yilmaz
SUNY at Buffalo
Computer Science and Engineering
PhD Candidate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130710/56aa1203/attachment.html
More information about the aerogear-dev
mailing list