How to set the Http_client the management certificate in the Subscription to azure connection

Mar 23, 2015 at 6:32 PM
In C#, when to connect to the azure service.
the credentials in the class ComputeManagementClient(SubscriptionCloudCredentials credentials)
has been filled with (subscriptionId, new X509Certificate2(Convert.FromBase64String(base64EncodedCertificate)).
But in C++ REST SDK, there is no correspondent. How could I set the Management Certificate.
Coordinator
Mar 24, 2015 at 8:59 PM
Hi feiyangnow,

We don't have a high level cross platform API for dealing with certificates. You can however use the http_client_config::set_nativehandle_options API to in a platform specific way set the client certificate. On Windows desktop you receive a WinHttp HINTERNET handle, and on non-Windows platforms a boost::asio::ssl::stream<boost::asio::ip::tcp::socket &> pointer. Here is a discussion thread showing how for Windows desktop.

Steve
Mar 25, 2015 at 8:37 AM
Thanks for your quick response.