remove Exportable property from CertificateSettings
This commit is contained in:
@@ -16,7 +16,6 @@ public sealed class CertificateSettings
|
|||||||
Issuer = null;
|
Issuer = null;
|
||||||
FriendlyName = NetUtils.MachineName;
|
FriendlyName = NetUtils.MachineName;
|
||||||
ValidityPeriod = TimeSpan.FromDays(3650 + 2);
|
ValidityPeriod = TimeSpan.FromDays(3650 + 2);
|
||||||
ExportableKeys = true;
|
|
||||||
IsCertificateAuthority = false;
|
IsCertificateAuthority = false;
|
||||||
KeyUsage = X509KeyUsageFlags.None;
|
KeyUsage = X509KeyUsageFlags.None;
|
||||||
}
|
}
|
||||||
@@ -31,8 +30,6 @@ public sealed class CertificateSettings
|
|||||||
|
|
||||||
public TimeSpan ValidityPeriod { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
public TimeSpan ValidityPeriod { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
||||||
|
|
||||||
public bool ExportableKeys { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
|
||||||
|
|
||||||
public bool IsCertificateAuthority { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
public bool IsCertificateAuthority { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
||||||
|
|
||||||
public X509KeyUsageFlags KeyUsage { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
public X509KeyUsageFlags KeyUsage { [DebuggerStepThrough] get; [DebuggerStepThrough] set; }
|
||||||
@@ -56,6 +53,6 @@ public sealed class CertificateSettings
|
|||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return string.Format("issuer = {0}, subject-name = '{1}', validity-period = {2} days, exportable = {3}, is-ca = {4}", Issuer?.Subject ?? "<not-set>", SubjectAlternateNames.First(), ValidityPeriod.TotalDays, ExportableKeys ? "yes" : "no", IsCertificateAuthority ? "yes" : "no");
|
return string.Format("issuer = {0}, subject-name = '{1}', validity-period = {2} days, is-ca = {3}", Issuer?.Subject ?? "<not-set>", SubjectAlternateNames.First(), ValidityPeriod.TotalDays, IsCertificateAuthority ? "yes" : "no");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user