• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Web.SSLCertificate类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Web.WebServer类代码示例发布时间:2022-05-26
下一篇:
C# Mail.MailList类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap