Created
January 3, 2020 17:55
-
-
Save jen20/f60c40fdeda08370d36d2d8e135ed250 to your computer and use it in GitHub Desktop.
Get peer certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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