wait for both key and cert to be ready