try to improve ssl management