Bug/json error when updating client certificate #6364