Update to check for cert exists