Use SSL connection states instead of custom states.