Allow to use the 'key' keyword when 'crt' was generated with both a crt
and a key.
No backport needed.
errno = 0;
/* if ACME is enabled and the file does not exists, and no key was previously loaded generate the key */
if (s->conf.acme.id &&
- (stat(path, &sb) == -1 && errno == ENOENT) &&
- (!s->data->key)) {
- s->data->key = acme_gen_tmp_pkey();
+ (stat(path, &sb) == -1 && errno == ENOENT)) {
+ if (!s->data->key)
+ s->data->key = acme_gen_tmp_pkey();
} else
#endif
{