/// <summary> /// Will deploy certificate found by find type and find value from the local certificate store, to remote certificate store on server. /// </summary> /// <param name="findType"></param> /// <param name="findValue"></param> /// <returns></returns> public static IOfferRemoteConfiguration FromStore(this IOfferSslInfrastructure sslInfra, X509FindType findType, string findValue) { var infraBuilder = ((SslInfrastructureBuilder)sslInfra).InfrastructureBuilder; var certOp = new CertificateFromStoreOperation(findType, findValue); Configure.Operation(infraBuilder, certOp); return(infraBuilder); }
public IOfferInfrastructure FromStore(X509FindType findType, string findValue) { var certOp = new CertificateFromStoreOperation(findType, findValue); var compositeSequence = _infrastructureSequence.NewCompositeSequence(certOp); certOp.Configure(new RemoteCompositeBuilder(compositeSequence, _webDeploy)); return(_infrastructureBuilder); }
/// <summary> /// Will deploy certificate found by find type and find value from the local certificate store, to remote certificate store on server with provided options. /// </summary> /// <param name="findType"></param> /// <param name="findValue"></param> /// <param name="options"></param> /// <returns></returns> public static IOfferRemoteConfiguration FromStore(this IOfferSslInfrastructure sslInfra, X509FindType findType, string findValue, Action <IOfferCertificateOptions> options) { var infraBuilder = ((SslInfrastructureBuilder)sslInfra).InfrastructureBuilder; var certOpt = new CertificateOptions(); options(certOpt); var certOp = new CertificateFromStoreOperation(findType, findValue, certOpt); OperationExecutor.Execute((RemoteBuilder)sslInfra, certOp); return(infraBuilder); }
/// <summary> /// Will deploy certificate found by find type and find value from the local certificate store, to remote certificate store on server with provided options. /// </summary> /// <param name="remoteCert"></param> /// <param name="findType"></param> /// <param name="findValue"></param> /// <param name="options"></param> /// <returns></returns> public static IOfferRemoteDeployment FromStore(this IOfferRemoteCertDeployment remoteCert, X509FindType findType, string findValue, Action <IOfferCertificateOptions> options) { var certOptions = new CertificateOptions(); if (options != null) { options(certOptions); } var certOp = new CertificateFromStoreOperation(findType, findValue, certOptions); OperationExecutor.Execute((RemoteBuilder)remoteCert, certOp); return(((RemoteCertDeploymentBuilder)remoteCert).RemoteDeployment); }
public IOfferRemoteDeployment FromStore(X509FindType findType, string findValue, Action <IOfferCertificateOptions> options) { var certOptions = new CertificateOptions(); if (options != null) { options(certOptions); } var certOp = new CertificateFromStoreOperation(findType, findValue, certOptions); var compositeSequence = _remoteSequence.NewCompositeSequence(certOp); certOp.Configure(new RemoteCompositeBuilder(compositeSequence, _webDeploy)); return(_remoteDeploymentBuilder); }