summaryrefslogtreecommitdiffstats
path: root/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs')
-rw-r--r--src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs b/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs
new file mode 100644
index 0000000..87ef5b0
--- /dev/null
+++ b/src/main.lib/Plugins/StorePlugins/CentralSsl/CentralSslArgumentsProvider.cs
@@ -0,0 +1,30 @@
+using Fclp;
+using PKISharp.WACS.Configuration;
+using PKISharp.WACS.Services;
+
+namespace PKISharp.WACS.Plugins.StorePlugins
+{
+ class CentralSslArgumentsProvider : BaseArgumentsProvider<CentralSslArguments>
+ {
+ public override string Name => "Central Certificate Store plugin";
+ public override string Group => "Store";
+ public override string Condition => "--store centralssl";
+
+ public override void Configure(FluentCommandLineParser<CentralSslArguments> parser)
+ {
+ parser.Setup(o => o.CentralSslStore)
+ .As("centralsslstore")
+ .WithDescription("When using this setting, certificate files are stored to the CCS and IIS bindings are configured to reflect that.");
+ parser.Setup(o => o.PfxPassword)
+ .As("pfxpassword")
+ .WithDescription("Password to set for .pfx files exported to the IIS CSS.");
+ }
+
+ public override bool Active(CentralSslArguments current)
+ {
+ return !string.IsNullOrEmpty(current.CentralSslStore) ||
+ !string.IsNullOrEmpty(current.PfxPassword);
+ }
+
+ }
+}