Skip to content

Commit

Permalink
Merge pull request #297 from roncain/localhost-cert-fix
Browse files Browse the repository at this point in the history
Fixes issue matching wrong localhost certificate
  • Loading branch information
roncain committed Aug 31, 2015
2 parents 54a9d0c + 3b72d45 commit e299bba
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public static void ReleaseAllResources()
// the chance to release resources they've acquired or installed
AppDomainManager.ShutdownAllAppDomains();

// Uninstall any certificates added or used by the Bridge itself
CertificateManager.UninstallAllCertificates(force: true);

// Force the removal of the SSL cert that may have been added
// by another AppDomain or left from a prior run
int httpsPort = ConfigController.BridgeConfiguration.BridgeHttpsPort;
Expand All @@ -94,7 +97,7 @@ public static void ReleaseAllResources()
CertificateManager.UninstallSslPortCertificate(httpsPort);
}

CertificateManager.UninstallAllCertificates();
// Finally remove all firewall rules we added for the ports
PortManager.RemoveAllBridgeFirewallRules();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public AssemblyLoader()
{
// Uninstall all certificates we explicitly added within this AppDomain
CertificateManager.UninstallAllSslPortCertificates();
CertificateManager.UninstallAllMyCertificates();
CertificateManager.UninstallAllRootCertificates();
CertificateManager.UninstallAllMyCertificates(force: false);
CertificateManager.UninstallAllRootCertificates(force: false);
};
}

Expand Down
Loading

0 comments on commit e299bba

Please sign in to comment.