[Modify] Polish it
This commit is contained in:
parent
34ef69cd2c
commit
4ce742e1b9
@ -210,6 +210,7 @@ namespace WebSocketSharp.Net
|
|||||||
try {
|
try {
|
||||||
var cer = Path.Combine (folderPath, String.Format ("{0}.cer", port));
|
var cer = Path.Combine (folderPath, String.Format ("{0}.cer", port));
|
||||||
var key = Path.Combine (folderPath, String.Format ("{0}.key", port));
|
var key = Path.Combine (folderPath, String.Format ("{0}.key", port));
|
||||||
|
|
||||||
if (File.Exists (cer) && File.Exists (key)) {
|
if (File.Exists (cer) && File.Exists (key)) {
|
||||||
var cert = new X509Certificate2 (cer);
|
var cert = new X509Certificate2 (cer);
|
||||||
cert.PrivateKey = createRSAFromFile (key);
|
cert.PrivateKey = createRSAFromFile (key);
|
||||||
|
Loading…
Reference in New Issue
Block a user