fix SSLSocket bug
add multiport support
add test server.pem