pki: Add support for Ed448 keys/certificates
[strongswan.git] / src / pki / commands / issue.c
index 4f11e7a..f20e2e3 100644 (file)
@@ -124,6 +124,11 @@ static int issue()
                                        type = CRED_PRIVATE_KEY;
                                        subtype = KEY_ED25519;
                                }
+                               else if (streq(arg, "ed448"))
+                               {
+                                       type = CRED_PRIVATE_KEY;
+                                       subtype = KEY_ED448;
+                               }
                                else if (streq(arg, "bliss"))
                                {
                                        type = CRED_PRIVATE_KEY;
@@ -631,9 +636,10 @@ static void __attribute__ ((constructor))reg()
        command_register((command_t) {
                issue, 'i', "issue",
                "issue a certificate using a CA certificate and key",
-               {"[--in file] [--type pub|pkcs10|priv|rsa|ecdsa|ed25519|bliss] --cakey file|--cakeyid hex",
-                " --cacert file [--dn subject-dn] [--san subjectAltName]+",
-                "[--lifetime days] [--serial hex] [--ca] [--pathlen len]",
+               {"[--in file] [--type pub|pkcs10|priv|rsa|ecdsa|ed25519|ed448|bliss]",
+                "--cakey file|--cakeyid hex --cacert file [--dn subject-dn]",
+                "[--san subjectAltName]+ [--lifetime days] [--serial hex]",
+                "[--ca] [--pathlen len]",
                 "[--flag serverAuth|clientAuth|crlSign|ocspSigning|msSmartcardLogon]+",
                 "[--crl uri [--crlissuer i]]+ [--ocsp uri]+ [--nc-permitted name]",
                 "[--nc-excluded name] [--policy-mapping issuer-oid:subject-oid]",