SSL half finished, need debuging