Skip to content

Commit 2c725da

Browse files
Krystal Culpkmjjc
authored andcommitted
remove unnecessary cert check
1 parent 8abda3c commit 2c725da

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/VirtualClient/VirtualClient.Main/CommandBase.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,6 @@ protected virtual IServiceCollection InitializeDependencies(string[] args)
624624

625625
CommandBase.proxyApiDebugLoggers.Add(debugLogger);
626626

627-
X509Certificate2 certificate = null;
628-
if (EndpointUtility.TryParseCertificateReference(this.ProxyApiUri, out string issuer, out string subject))
629-
{
630-
certificate = this.CertificateManager.GetCertificateFromStoreAsync(issuer, subject).GetAwaiter().GetResult();
631-
}
632-
633627
blobStores.Add(DependencyFactory.CreateProxyBlobManager(new DependencyProxyStore(DependencyBlobStore.Packages, blobStore.EndpointUri), packageSource?.ToString(), debugLogger));
634628

635629
// Enabling ApiClientManager to save Proxy API will allow downstream to access proxy endpoints as required.

0 commit comments

Comments
 (0)