A new empty certificate created by calling "new ssl cert" directly
followed by "commit ssl cert" would not have a corresponding JWT tree
entry created since only the data-loading code paths were covered in the
previous jwt tree related commits.
With this patch we always have a corresponding jwt tree entry for every
ckch_store.
This patch can be backported to 3.4.
goto error;
}
+ /* Create empty entry into JWT-specific tree */
+ if (jwt_tree_create_entry_from_store(store, err)) {
+ memprintf(err,"%scould not create jwt tree entry for '%s'.", err && *err ? *err : "", store->path);
+ ckch_store_free(store);
+ store = NULL;
+ goto error;
+ }
+
/* insert into the ckchs tree */
ebst_insert(&ckchs_tree, &store->node);
memprintf(err, "New empty certificate store '%s'!\n", path);