本文整理汇总了C#中WebsitePanel.Providers.Web.SSLCertificate类的典型用法代码示例。如果您正苦于以下问题:C# SSLCertificate类的具体用法?C# SSLCertificate怎么用?C# SSLCertificate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SSLCertificate类属于WebsitePanel.Providers.Web命名空间,在下文中一共展示了SSLCertificate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: installCertificate
public override SSLCertificate installCertificate(SSLCertificate certificate, WebSite website)
{
var sslObjectService = new SSLModuleService();
//
return sslObjectService.InstallCertificate(certificate, website);
}
开发者ID:jonwbstr,项目名称:Websitepanel,代码行数:6,代码来源:IIs70.cs
示例2: DeleteCertificate
public ResultObject DeleteCertificate(SSLCertificate certificate, WebSite website)
{
object[] results = this.Invoke("DeleteCertificate", new object[] {
certificate,
website});
return ((ResultObject)(results[0]));
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:7,代码来源:WebServerProxy.cs
示例3: DeleteCertificateAsync
/// <remarks/>
public void DeleteCertificateAsync(SSLCertificate certificate, WebSite website)
{
this.DeleteCertificateAsync(certificate, website, null);
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:5,代码来源:WebServerProxy.cs
示例4: generateRenewalCSRAsync
/// <remarks/>
public void generateRenewalCSRAsync(SSLCertificate certificate)
{
this.generateRenewalCSRAsync(certificate, null);
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:5,代码来源:WebServerProxy.cs
示例5: installCertificate
public SSLCertificate installCertificate(SSLCertificate certificate, WebSite website)
{
object[] results = this.Invoke("installCertificate", new object[] {
certificate,
website});
return ((SSLCertificate)(results[0]));
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:7,代码来源:WebServerProxy.cs
示例6: DeleteCertificate
public ResultObject DeleteCertificate(int siteId, SSLCertificate certificate)
{
object[] results = this.Invoke("DeleteCertificate", new object[] {
siteId,
certificate});
return ((ResultObject)(results[0]));
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:7,代码来源:WebServersProxy.cs
示例7: generateRenewalCSR
public SSLCertificate generateRenewalCSR(SSLCertificate certificate)
{
object[] results = this.Invoke("generateRenewalCSR", new object[] {
certificate});
return ((SSLCertificate)(results[0]));
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:6,代码来源:WebServerProxy.cs
示例8: installCertificate
public SSLCertificate installCertificate(SSLCertificate certificate, WebSite website)
{
try
{
Log.WriteStart("'{0}' installCertificate", ProviderSettings.ProviderName);
SSLCertificate result = WebProvider.installCertificate(certificate, website);
Log.WriteEnd("'{0}' installCertificate", ProviderSettings.ProviderName);
return result;
}
catch (Exception ex)
{
Log.WriteError(String.Format("'{0}' generateCSR", ProviderSettings.ProviderName), ex);
throw;
}
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:16,代码来源:WebServer.asmx.cs
示例9: DeleteCertificate
public ResultObject DeleteCertificate(SSLCertificate certificate, WebSite website)
{
return WebProvider.DeleteCertificate(certificate, website);
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:4,代码来源:WebServer.asmx.cs
示例10: DeleteCertificate
public static ResultObject DeleteCertificate(int siteId, SSLCertificate certificate)
{
ResultObject result = new ResultObject { IsSuccess = true };
try
{
TaskManager.StartTask(LOG_SOURCE_WEB, "DeleteCertificate");
WebSite item = GetWebSite(siteId) as WebSite;
WebServer server = GetWebServer(item.ServiceId);
result = server.DeleteCertificate(certificate, item);
if (result.IsSuccess)
{
DataProvider.DeleteCertificate(SecurityContext.User.UserId, item.PackageId, certificate.id);
}
else
{
List<string> exceptions = result.ErrorCodes;
foreach (string s in exceptions)
{
TaskManager.WriteError(s.ToString());
}
}
}
catch (Exception ex)
{
TaskManager.WriteError(ex);
result.IsSuccess = false;
}
finally
{
TaskManager.CompleteTask();
}
return result;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:34,代码来源:WebServerController.cs
示例11: generateRenewalCSR
public SSLCertificate generateRenewalCSR(SSLCertificate certificate)
{
try
{
Log.WriteStart("'{0}' generateCSR", ProviderSettings.ProviderName);
certificate = WebProvider.generateCSR(certificate);
Log.WriteEnd("'{0}' generateCSR", ProviderSettings.ProviderName);
return certificate;
}
catch (Exception ex)
{
Log.WriteError(String.Format("'{0}' generateCSR", ProviderSettings.ProviderName), ex);
throw;
}
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:16,代码来源:WebServer.asmx.cs
示例12: InstallCertificate
public static ResultObject InstallCertificate(SSLCertificate certificate, int siteItemId)
{
ResultObject result = new ResultObject { IsSuccess = true };
try
{
TaskManager.StartTask(LOG_SOURCE_WEB, "installCertificate");
TaskManager.WriteParameter("SiteItemId", siteItemId);
TaskManager.WriteParameter("Hostname", certificate.Hostname);
WebSite item = GetWebSite(siteItemId) as WebSite;
TaskManager.WriteParameter("WebSite.Name", item.Name);
WebServer server = GetWebServer(item.ServiceId);
TaskManager.WriteParameter("item.ServiceId", item.ServiceId);
IPAddressInfo ip = ServerController.GetIPAddress(item.SiteIPAddressId);
if (ip != null)
//item.SiteIPAddress = !String.IsNullOrEmpty(ip.InternalIP) ? ip.InternalIP : ip.ExternalIP;
item.SiteIPAddress = ip.ExternalIP;
certificate = server.installCertificate(certificate, item);
if (certificate.SerialNumber == null)
{
result.AddError("Error_Installing_certificate", null);
result.IsSuccess = false;
}
DataProvider.CompleteSSLRequest(SecurityContext.User.UserId, item.PackageId,
certificate.id, certificate.Certificate,
certificate.DistinguishedName, certificate.SerialNumber,
certificate.Hash, certificate.ValidFrom, certificate.ExpiryDate);
if (certificate.IsRenewal)
{
DataProvider.DeleteCertificate(SecurityContext.User.UserId, item.PackageId, certificate.PreviousId);
}
}
catch (Exception ex)
{
result.AddError("0", ex);
TaskManager.WriteError(ex);
}
finally
{
TaskManager.CompleteTask();
}
return result;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:50,代码来源:WebServerController.cs
示例13: CertificateRequest
public static SSLCertificate CertificateRequest(SSLCertificate certificate, int siteItemId)
{
try
{
TaskManager.StartTask(LOG_SOURCE_WEB, "certificateRequest");
TaskManager.WriteParameter("SiteItemId", siteItemId);
TaskManager.WriteParameter("Hostname", certificate.Hostname);
WebSite item = GetWebSite(siteItemId) as WebSite;
PackageInfo service = PackageController.GetPackage(item.PackageId);
TaskManager.WriteParameter("WebSite.Name", item.Name);
WebServer server = GetWebServer(item.ServiceId);
TaskManager.WriteParameter("item.ServiceId", item.ServiceId);
certificate.UserID = service.UserId;
// We want to have a unique identifier for the FriendlyName to help us to identify it easily
long ticks = DateTime.UtcNow.Ticks - DateTime.Parse("01/01/1970 00:00:00").Ticks;
ticks /= 10000000; // Convert windows ticks to seconds
//clean up bindings
certificate.FriendlyName = String.Format("{0}_{1}", certificate.Hostname, ticks.ToString());
certificate = server.generateCSR(certificate);
certificate.id = DataProvider.AddSSLRequest(SecurityContext.User.UserId, item.PackageId,
certificate.SiteID, certificate.UserID, certificate.FriendlyName, certificate.Hostname,
certificate.CSR, certificate.CSRLength, certificate.DistinguishedName, certificate.IsRenewal,
certificate.PreviousId);
}
catch (Exception ex)
{
TaskManager.WriteError(ex);
}
finally
{
TaskManager.CompleteTask();
}
return certificate;
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:44,代码来源:WebServerController.cs
示例14: DeleteCertificate
public override ResultObject DeleteCertificate(SSLCertificate certificate, WebSite website)
{
var sslObjectService = new SSLModuleService();
//
return sslObjectService.DeleteCertificate(certificate, website);
}
开发者ID:jonwbstr,项目名称:Websitepanel,代码行数:6,代码来源:IIs70.cs
示例15: InstallCertificateAsync
/// <remarks/>
public void InstallCertificateAsync(SSLCertificate certificate, int siteItemId)
{
this.InstallCertificateAsync(certificate, siteItemId, null);
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:5,代码来源:WebServersProxy.cs
示例16: installCertificate
public virtual SSLCertificate installCertificate(SSLCertificate certificate, WebSite website)
{
throw new NotSupportedException();
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:4,代码来源:IIs60.cs
示例17: generateRenewalCSR
public virtual SSLCertificate generateRenewalCSR(SSLCertificate certificate)
{
throw new NotSupportedException();
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:4,代码来源:IIs60.cs
示例18: DeleteCertificateAsync
/// <remarks/>
public void DeleteCertificateAsync(int siteId, SSLCertificate certificate)
{
this.DeleteCertificateAsync(siteId, certificate, null);
}
开发者ID:lwhitelock,项目名称:Websitepanel,代码行数:5,代码来源:WebServersProxy.cs
示例19: DeleteCertificate
public virtual ResultObject DeleteCertificate(SSLCertificate certificate, WebSite website)
{
throw new NotSupportedException();
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:4,代码来源:IIs60.cs
示例20: BegingenerateRenewalCSR
/// <remarks/>
public System.IAsyncResult BegingenerateRenewalCSR(SSLCertificate certificate, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("generateRenewalCSR", new object[] {
certificate}, callback, asyncState);
}
开发者ID:jordan49,项目名称:websitepanel,代码行数:6,代码来源:WebServerProxy.cs
注:本文中的WebsitePanel.Providers.Web.SSLCertificate类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论