Renew server cert
It is hacked on top but I still think it is not so bad of a code.
I also wanted to just cover only errors such as Try again
or Network unreachable
but it is not easy to match them as the only one type of exception is thrown and reason is not stated to be stable (it might change and then we would not succeed.