Skip to content

Commit 2524b65

Browse files
committed
Reverting certificate pass through for Local machine
1 parent 6200155 commit 2524b65

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
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
}

0 commit comments

Comments
 (0)