aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/x509.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/x509.cpp')
-rw-r--r--src/cli/x509.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cli/x509.cpp b/src/cli/x509.cpp
index ca21c1493..adae8285c 100644
--- a/src/cli/x509.cpp
+++ b/src/cli/x509.cpp
@@ -298,7 +298,7 @@ class Generate_PKCS10 final : public Command
public:
Generate_PKCS10()
: Command("gen_pkcs10 key CN --country= --organization= "
- "--email= --dns= --key-pass= --hash=SHA-256 --emsa=") {}
+ "--email= --dns= --ext-ku= --key-pass= --hash=SHA-256 --emsa=") {}
std::string group() const override
{
@@ -327,6 +327,11 @@ class Generate_PKCS10 final : public Command
opts.email = get_arg("email");
opts.more_dns = Botan::split_on(get_arg("dns"), ',');
+ for(std::string ext_ku : Botan::split_on(get_arg("ext-ku"), ','))
+ {
+ opts.add_ex_constraint(ext_ku);
+ }
+
std::string emsa = get_arg("emsa");
if(emsa.empty() == false)