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.ServerApplication/Networking/NetworkManager.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'MediaBrowser.ServerApplication/Networking/NetworkManager.cs') diff --git a/MediaBrowser.ServerApplication/Networking/NetworkManager.cs b/MediaBrowser.ServerApplication/Networking/NetworkManager.cs index fc4d26363..978a29db0 100644 --- a/MediaBrowser.ServerApplication/Networking/NetworkManager.cs +++ b/MediaBrowser.ServerApplication/Networking/NetworkManager.cs @@ -155,6 +155,16 @@ namespace MediaBrowser.ServerApplication.Networking }); } + /// + /// Generates a self signed certificate at the locatation specified by . + /// + /// The path to generate the certificate. + /// The common name for the certificate. + public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname) + { + CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger); + } + /// /// Gets the network prefix. /// -- cgit v1.2.3