fix ssl for swift