add 'get_peer_cert_chain' for getting certificates forming the certificate chain of the peer