Skip to content

Commit

Permalink
Revert bypassing cert validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjkuma committed Jan 22, 2015
1 parent 62af556 commit 2b73a1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ public PSRecoveryServicesClient()
/// <param name="azureSubscription">Azure Subscription</param>
public PSRecoveryServicesClient(AzureSubscription azureSubscription)
{
if (ServicePointManager.ServerCertificateValidationCallback == null)
{
ServicePointManager.ServerCertificateValidationCallback =
delegate { return true; };
}

this.recoveryServicesClient =
AzureSession.ClientFactory.CreateClient<RecoveryServicesManagementClient>(azureSubscription, AzureEnvironment.Endpoint.ServiceManagement);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void HandleException(Exception ex)
/// <summary>
/// Waits for the job to complete.
/// </summary>
/// <param name="jobId">Id of the job to wait for.</param>c
/// <param name="jobId">Id of the job to wait for.</param>
public void WaitForJobCompletion(string jobId)
{
JobResponse jobResponse = null;
Expand Down

0 comments on commit 2b73a1d

Please sign in to comment.