I'm having trouble communicating with Azure using curl from linux. When I send the followig command:
curl -E "/home/rainey/azure-cert.cer" -H "x-ms-version: 2014-05-09" " https://management.core.windows.net/[subscription id]/services/hostedservices"
What am I missing?
You need to use the .pem file in the cURL command line. The .cer is used to upload to the Management Cert store in the Azure portal.
Here are a couple blog posts with lots of working examples:
http://blog.toddysm.com/2012/01/accessing-windows-azure-rest-apis-with-curl.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.