Implemented Logic for SSL