tls: fix incorrect event emitting when cert is bad

http://nodejs.netease.com/topic/54588480cb93b0031f48404a
tls: update certificate for test case