don't try and get a cert unless ssl_accept has finished, because chances are it wont work, hardly critical since the call fails harmlessly, but this is cleaner