Ejemplo n.º 1
0
 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.
 /// </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;
 }
        /// <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 IOfferRemoteDeployment FromStore(this IOfferRemoteCertDeployment remoteCert, X509FindType findType, string findValue, Action<IOfferCertificateOptions> options)
        {
            var certOptions = new CertificateOptions();
            if (options != null)
            {
                options(certOptions);
            }

            var remoteCertBuilder = ((RemoteCertDeploymentBuilder) remoteCert).RemoteDeployment;
            var certOp = new CertificateFromStoreOperation(findType, findValue, certOptions);
            Configure.Operation(remoteCertBuilder, certOp);
            return remoteCertBuilder;
        }
Ejemplo n.º 4
0
        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;
        }