From f6d6d579839460b349963d1348494870f4c129f0 Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 18 Jan 2015 16:44:35 -0500 Subject: Create self signed cert if one does not exist --- MediaBrowser.Common/Net/INetworkManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MediaBrowser.Common/Net') 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 /// The endpoint. /// true if [is in local network] [the specified endpoint]; otherwise, false. bool IsInLocalNetwork(string endpoint); + + /// + /// Generates a self signed certificate at the locatation specified by . + /// + /// The path to generate the certificate. + /// The common name for the certificate. + void GenerateSelfSignedSslCertificate(string certificatePath, string hostname); } } \ No newline at end of file -- cgit v1.2.3