简体   繁体   中英

curl (58) unable to load client cert -8912

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"

  • I get the following error: curl (58) unable to load client cert -8912

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://blogs.msdn.com/b/tconte/archive/2012/11/29/how-to-use-the-windows-azure-service-management-api-from-curl-to-create-virtual-machines.aspx

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM