Move appendPeerCert to standard input_tcp plugin