STARTTLS
termoGuardado neste navegador · Minha bancada
O comando que transforma em TLS uma conexão que começou em texto claro: o cliente pede, o servidor aceita, e o handshake TLS acontece na mesma conexão.
No SMTP ele é um verbo desde a RFC 3207 (2002, que substituiu a RFC 2487); a RFC 2595 (1999) deu ao IMAP o STARTTLS e ao POP3 o comando STLS, e o equivalente no LDAP (Lightweight Directory Access Protocol) é a operação estendida StartTLS da RFC 4511. Como o upgrade vem depois de uma saudação em texto claro, um cliente TLS precisa falar o protocolo primeiro: o openssl s_client envia as mensagens do próprio protocolo quando recebe -starttls e uma palavra-chave como smtp, imap, pop3, ftp ou ldap. Entre o cliente de e-mail e o provedor, a RFC 8314 (2018) recomenda, em vez disso, TLS implícito numa porta própria (465, 993 e 995).
Também conhecido como: stls, start tls, starttls smtp, ldap starttls
Fontes
- RFC 3207, SMTP Service Extension for Secure SMTP over TLS, February 2002 (read 2026-10-27): the STARTTLS verb and EHLO keyword; obsoletes RFC 2487
- RFC 2595, Using TLS with IMAP, POP3 and ACAP, June 1999 (read 2026-10-27): STARTTLS for IMAP and the STLS command for POP3
- RFC 4511, LDAP: The Protocol, section 4.14 (read 2026-10-27): the StartTLS extended operation
- RFC 8314, Cleartext Considered Obsolete, January 2018, section 3 (read 2026-10-27): Implicit TLS recommended for POP, IMAP and SMTP Submission, on ports 995, 993 and 465
- OpenSSL 3.5 manual, openssl-s_client(1) (read 2026-10-27): -starttls with the keywords smtp, pop3, imap, ftp, xmpp, xmpp-server, irc, postgres, mysql, lmtp, nntp, sieve and ldap