[Modify] Polish it

This commit is contained in:
sta 2020-10-16 19:46:29 +09:00
parent 34ef69cd2c
commit 4ce742e1b9

View File

@ -210,6 +210,7 @@ namespace WebSocketSharp.Net
try {
var cer = Path.Combine (folderPath, String.Format ("{0}.cer", port));
var key = Path.Combine (folderPath, String.Format ("{0}.key", port));
if (File.Exists (cer) && File.Exists (key)) {
var cert = new X509Certificate2 (cer);
cert.PrivateKey = createRSAFromFile (key);