[backend] make getsslcert also work the first time it is called