aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Net
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-01-19 01:17:48 -0500
committerLuke <luke.pulverenti@gmail.com>2015-01-19 01:17:48 -0500
commitdf56b1ec8a008933a9e20d6a3cd9b05580d143eb (patch)
treeb8298a6176ec929f8fbc94179d3dfdd03b1a3b8f /MediaBrowser.Common/Net
parentaf827c62414eb98a0a6772cd771066a63674b2c3 (diff)
parentf6d6d579839460b349963d1348494870f4c129f0 (diff)
Merge pull request #986 from jabbera/AutoCertGeneration
Create self signed cert if one does not exist
Diffstat (limited to 'MediaBrowser.Common/Net')
-rw-r--r--MediaBrowser.Common/Net/INetworkManager.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Common/Net/INetworkManager.cs b/MediaBrowser.Common/Net/INetworkManager.cs
index 979dae49c9..6b8136d872 100644
--- a/MediaBrowser.Common/Net/INetworkManager.cs
+++ b/MediaBrowser.Common/Net/INetworkManager.cs
@@ -2,6 +2,7 @@ using MediaBrowser.Model.IO;
using MediaBrowser.Model.Net;
using System.Collections.Generic;
using System.Net;
+using MediaBrowser.Model.Logging;
namespace MediaBrowser.Common.Net
{
@@ -51,5 +52,12 @@ namespace MediaBrowser.Common.Net
/// <param name="endpoint">The endpoint.</param>
/// <returns><c>true</c> if [is in local network] [the specified endpoint]; otherwise, <c>false</c>.</returns>
bool IsInLocalNetwork(string endpoint);
+
+ /// <summary>
+ /// Generates a self signed certificate at the locatation specified by <paramref name="certificatePath"/>.
+ /// </summary>
+ /// <param name="certificatePath">The path to generate the certificate.</param>
+ /// <param name="hostname">The common name for the certificate.</param>
+ void GenerateSelfSignedSslCertificate(string certificatePath, string hostname);
}
} \ No newline at end of file