123
124
125
126
127
128
129
130
|
# File 'lib/azure/cloud_service_management/cloud_service_management_service.rb', line 123
def upload_certificate(cloud_service_name, ssh)
data = export_der(ssh[:cert], ssh[:key])
request_path= "/services/hostedservices/#{cloud_service_name}/certificates"
body = Serialization.add_certificate_to_xml(data)
Azure::Loggerx.info "Uploading certificate to cloud service #{cloud_service_name}..."
request = client.management_request(:post, request_path, body)
request.call
end
|