blob: b543b41ba63833a2b12064201068d2f747219fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using Fclp;
using PKISharp.WACS.Configuration;
namespace PKISharp.WACS.Plugins.CsrPlugins
{
class CsrArgumentsProvider : BaseArgumentsProvider<CsrArguments>
{
public override string Name => "Common";
public override string Group => "CSR";
public override string Condition => null;
public override bool Active(CsrArguments current)
{
return current.OcspMustStaple;
}
public override void Configure(FluentCommandLineParser<CsrArguments> parser)
{
parser.Setup(o => o.OcspMustStaple)
.As("ocsp-must-staple")
.WithDescription("Enable OCSP Must Staple extension on certificate.");
parser.Setup(o => o.ReusePrivateKey)
.As("reuse-privatekey")
.WithDescription("Reuse the same private key for each renewal.");
}
}
}
|