Commit 0b64df4f authored by Honfika's avatar Honfika

FriendlyName on Unix #324

parent 339c7d8d
......@@ -126,7 +126,14 @@ namespace Titanium.Web.Proxy.Network.Certificate
// Set private key onto certificate instance
var x509Certificate = new X509Certificate2(certificate.GetEncoded());
x509Certificate.PrivateKey = DotNetUtilities.ToRSA(rsaparams);
x509Certificate.FriendlyName = subjectName;
try
{
x509Certificate.FriendlyName = subjectName;
}
catch (PlatformNotSupportedException)
{
// The FriendlyName value cannot be set on Unix.
}
return x509Certificate;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment