fix ssl cert error