Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 553c89b

Browse files
committed
Merge branch 'develop' into beta
2 parents 1c5da45 + 80b8cc3 commit 553c89b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Titanium.Web.Proxy/Network/CertificateManager.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,12 @@ internal CertificateManager(string rootCertificateName, string rootCertificateIs
205205
UserTrustRoot = userTrustRootCertificate;
206206
if (machineTrustRootCertificate)
207207
{
208-
MachineTrustRoot = machineTrustRootCertificate;
208+
userTrustRootCertificate = true;
209209
}
210210

211+
MachineTrustRoot = machineTrustRootCertificate;
211212
TrustRootAsAdministrator = trustRootCertificateAsAdmin;
213+
212214
if (rootCertificateName != null)
213215
{
214216
RootCertificateName = rootCertificateName;
@@ -754,12 +756,12 @@ public void EnsureRootCertificate()
754756
/// </summary>
755757
public void EnsureRootCertificate(bool userTrustRootCertificate = true, bool machineTrustRootCertificate = false, bool trustRootCertificateAsAdmin = false)
756758
{
757-
if(machineTrustRootCertificate)
759+
UserTrustRoot = userTrustRootCertificate;
760+
if (machineTrustRootCertificate)
758761
{
759762
userTrustRootCertificate = true;
760763
}
761764

762-
UserTrustRoot = userTrustRootCertificate;
763765
MachineTrustRoot = machineTrustRootCertificate;
764766
TrustRootAsAdministrator = trustRootCertificateAsAdmin;
765767

0 commit comments

Comments
 (0)