Skip to content

Commit 2b73a1d

Browse files
committed
Revert bypassing cert validation.
1 parent 62af556 commit 2b73a1d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClient.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ public PSRecoveryServicesClient()
9191
/// <param name="azureSubscription">Azure Subscription</param>
9292
public PSRecoveryServicesClient(AzureSubscription azureSubscription)
9393
{
94-
if (ServicePointManager.ServerCertificateValidationCallback == null)
95-
{
96-
ServicePointManager.ServerCertificateValidationCallback =
97-
delegate { return true; };
98-
}
99-
10094
this.recoveryServicesClient =
10195
AzureSession.ClientFactory.CreateClient<RecoveryServicesManagementClient>(azureSubscription, AzureEnvironment.Endpoint.ServiceManagement);
10296
}

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/RecoveryServicesCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void HandleException(Exception ex)
133133
/// <summary>
134134
/// Waits for the job to complete.
135135
/// </summary>
136-
/// <param name="jobId">Id of the job to wait for.</param>c
136+
/// <param name="jobId">Id of the job to wait for.</param>
137137
public void WaitForJobCompletion(string jobId)
138138
{
139139
JobResponse jobResponse = null;

0 commit comments

Comments
 (0)