solution for ssl problem #3