Can we only do this when the key/cert are set?