Skip to content

Instantly share code, notes, and snippets.

@toidiu
Last active February 15, 2024 22:03
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 toidiu/a0ff912e1d087608445cf876b9c860cf to your computer and use it in GitHub Desktop.
Save toidiu/a0ff912e1d087608445cf876b9c860cf to your computer and use it in GitHub Desktop.

Native tls fails cert auth

collecting stats with bpftrace
{"pid":67630,"driver":"/home/ec2-user/bin/s2n-netbench-driver-client-native-tls","scenario":"/home/ec2-user/bin/request_response_multi_20_incast_1GB_req_resp.json","start_time":{"secs_since_epoch":1707957073,"nanos_since_epoch":91859932},"traces":["lbl","request","response"]}
> Attaching 14 probes...
{"t":0,"memory":2494464000,"virtual_memory":10850304000}
Error: Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 167772294, library: "SSL routines", function: "tls_post_process_server_certificate", reason: "certificate verify failed", file: "ssl/statem/statem_clnt.c", line: 2091 }]))) }, X509VerifyResult { code: 62, error: "hostname mismatch" })
{"t":0,"memory":2494464000,"virtual_memory":10850304000,"syscalls":592,"allocs":{"count":46709,"total":7038380},"reallocs":{"count":547,"total":129465},"deallocs":{"count":648,"total":452627}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment