diff options
author | Jack Lloyd <[email protected]> | 2018-03-19 23:27:49 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-19 23:27:49 -0400 |
commit | a260a4f36ccaa1620455c976da55810bff77d5d7 (patch) | |
tree | 8f76a064a08f4f859661b9e3f7a7f8854c3f75c1 /src/cli | |
parent | 06b2ba179f548e830e673a0b2d749e6207f70ca9 (diff) |
Support multiple DNS names through the command line interface
Diffstat (limited to 'src/cli')
-rw-r--r-- | src/cli/x509.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cli/x509.cpp b/src/cli/x509.cpp index 021316d78..fef155c9f 100644 --- a/src/cli/x509.cpp +++ b/src/cli/x509.cpp @@ -1,5 +1,5 @@ /* -* (C) 2010,2014,2015 Jack Lloyd +* (C) 2010,2014,2015,2018 Jack Lloyd * (C) 2017 René Korthaus, Rohde & Schwarz Cybersecurity * * Botan is released under the Simplified BSD License (see license.txt) @@ -17,6 +17,7 @@ #include <botan/x509path.h> #include <botan/x509self.h> #include <botan/data_src.h> +#include <botan/parsing.h> #if defined(BOTAN_HAS_OCSP) #include <botan/ocsp.h> @@ -259,7 +260,7 @@ class Gen_Self_Signed final : public Command opts.country = get_arg("country"); opts.organization = get_arg("organization"); opts.email = get_arg("email"); - opts.dns = get_arg("dns"); + opts.more_dns = Botan::split_on(get_arg("dns"), ','); std::string emsa = get_arg("emsa"); @@ -284,7 +285,7 @@ class Generate_PKCS10 final : public Command public: Generate_PKCS10() : Command("gen_pkcs10 key CN --country= --organization= " - "--email= --key-pass= --hash=SHA-256 --emsa=") {} + "--email= --dns= --key-pass= --hash=SHA-256 --emsa=") {} std::string group() const override { @@ -311,6 +312,7 @@ class Generate_PKCS10 final : public Command opts.country = get_arg("country"); opts.organization = get_arg("organization"); opts.email = get_arg("email"); + opts.more_dns = Botan::split_on(get_arg("dns"), ','); std::string emsa = get_arg("emsa"); |