Skip to content

Instantly share code, notes, and snippets.

@jen20
Created January 3, 2020 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jen20/f60c40fdeda08370d36d2d8e135ed250 to your computer and use it in GitHub Desktop.
Save jen20/f60c40fdeda08370d36d2d8e135ed250 to your computer and use it in GitHub Desktop.
Get peer certificate
let (_, session) = tls.get_ref();
match session.get_peer_certificates() {
Some(certs) => {}
None => {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment