Skip to content

Instantly share code, notes, and snippets.

@algorev
Created November 11, 2016 15:20
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 algorev/f65c23132b2a227981485d02cf334b62 to your computer and use it in GitHub Desktop.
Save algorev/f65c23132b2a227981485d02cf334b62 to your computer and use it in GitHub Desktop.
My tls negotiations with the smtp server
$ nc smtp.gmail.com 25 && printf "\n"
S: 220 smtp.gmail.com ESMTP c133sm12701941wme.12 - gsmtp
Me: helo someone
S: 250 smtp.gmail.com at your service
Me: mail from me
S: 530 5.7.0 Must issue a STARTTLS command first. c133sm12701941wme.12 - gsmtp
Me: starttls
S: 220 2.0.0 Ready to start TLS
Me: not me
S: F
#so what? i only could use nc!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment