tls: `getPeerCertificate(detailed)`

Add `raw` property to certificate, add mode to output full certificate
chain.