Create self signed cert if one does not exist

This commit is contained in:
Mike
2015-01-18 16:44:35 -05:00
parent de76156391
commit f6d6d57983
9 changed files with 572 additions and 1 deletions
@@ -35,5 +35,15 @@ namespace MediaBrowser.Server.Mono.Networking
{
return new List<FileSystemEntryInfo> ();
}
/// <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>
public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname)
{
CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger);
}
}
}