secure-socket: more accurate error messages
secure-socket: more accurate error messages

This removes the assumption that the unverified cert is the first in the chain, if additional certs are supplied this reports an error message that looks like `Error verifying peer: ok`.
luvit/lit,zhaozg/lit