update the selfsigned certificate