When a store without any instance takes the conf parsed from an "add ssl
crt-list" line, its "jwt" flag is overwritten too, while the certificate
is still in the JWT tree. After "add ssl jwt" followed by "add ssl
crt-list", the certificate is no longer listed by "show ssl jwt", it can
be deleted while in use for JWT validation, and the JWT tree is no
longer updated when the certificate is.
Let's keep the flag when it was set. This was introduced by commit
18ff130e9 ("MINOR: jwt: Add new "jwt" certificate option") in 3.3-dev10,
so this should be backported to 3.3.
old_cc = store->conf;
store->conf = cc;
+ /* still in the JWT tree */
+ store->conf.jwt |= old_cc.jwt;
adopted = 1;
/* fresh new, run more init (for example init ocsp-update tasks) */
cfgerr |= ckch_store_load_files(&cc, store, 1, "CLI", 1, &err);