[PATCH] Refactor the copy of keys and certs for unbound