diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index b22522681..c920f2209 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -3192,6 +3192,9 @@ static int cli_parse_del_cert(char **args, char *payload, struct appctx *appctx, if (!LIST_ISEMPTY(&store->ckch_inst)) { memprintf(&err, "certificate '%s' in use, can't be deleted!\n", filename); goto error; + } else if (store->jwt_entry) { + memprintf(&err, "certificate '%s' in use for JWT validation, can't be deleted!\n", filename); + goto error; } ebmb_delete(&store->node);