Forum Discussion
Suman_Ambardar
May 05, 2020Copper Contributor
Connection to an ARM server using Azure Stack client library for C++ using SSL certificates.
We are trying to connect to an ARM server using Azure Stack client library for C++.
https://azure.github.io/azure-storage-cpp/
https://azure.github.io/azure-storage-cpp/
We would like to use the blob storage to read/write data.
SSL certificates are deployed in the Azure Stack servers.
SSL certificates are deployed in the Azure Stack servers.
We would like to validate the SSL certificates of the ARM server before connecting to it.
If REST APIs are used such as to list the subscriptions Ids in ARM server, SSL certificates and enforcement of TLS 1.2 could be done by the below curl command.
If REST APIs are used such as to list the subscriptions Ids in ARM server, SSL certificates and enforcement of TLS 1.2 could be done by the below curl command.
curl -X "POST" "https://adfs.local.azurestack.external/adfs/oauth2/token" -H "Content-Type: application/x-www-form-urlencoded" --data-urlencode "client_id=1950a258-227b-4e31-a9cf-717495945fc2" --data-urlencode "grant_type=password" --data-urlencode "username=cloudadmin@azurestack.local" --data-urlencode "password=myazurepassword" --data-urlencode "resource=https://management.adfs.azurestack.local/65c7dcc3-2100-4ab2-a1bf-00d13291bf7d" --tlsv1.2 --cacert "C:\Users\AzureStackAdmin\Desktop\certs.pem"
where --tlsv1.2 has been used for TLS enforcement and --cacert option of curl has been used for the certificate store.
Could someone explain how the certificates could be validated when the connection is made to the ARM server using connect string of the client library.
const utility::string_t storage_connection_string(U("DefaultEndpointsProtocol=https;AccountName=my_storage_account;AccountKey=my_storage_account_key"));
Could someone explain how the certificates could be validated when the connection is made to the ARM server using connect string of the client library.
const utility::string_t storage_connection_string(U("DefaultEndpointsProtocol=https;AccountName=my_storage_account;AccountKey=my_storage_account_key"));
What should be the method to specify the TLS version string and the certificate path in the connection string?
Could someone please help?
Could someone please help?
Thanks,
Suman
1 Reply
- Suman_AmbardarCopper Contributor
Can someone please respond to my query here?