# Analizzatore di openssl s_client

> Incolla un comando openssl s_client, ciò che ha stampato o entrambi: ogni opzione e ogni blocco dell’output spiegati in base al manuale di OpenSSL 3.5, la release con supporto a lungo termine, i valori predefiniti che si applicano quando un’opzione manca e i rilievi che contano, da una verifica fallita o non applicata a un nome host che nessuno ha controllato e a una catena senza il suo intermedio. Letto interamente nel tuo browser; nessuna connessione verso l’esterno.

- Tool: https://ronutz.com/it/tools/openssl-s-client-explainer
- Family: TLS e trasporto

---

## Cosa fa

Incolla una riga di comando `openssl s_client`, il testo che ha stampato o entrambi, e lo strumento li spiega. Ogni opzione viene letta rispetto alle pagine di manuale di OpenSSL 3.5, la release con supporto a lungo termine (supportata fino all’8 aprile 2030); i valori predefiniti che valgono perché manca un’opzione vengono esplicitati, ogni blocco dell’output viene riconosciuto e spiegato, e i rilievi su cui intervenire sono elencati per primi, i più gravi in cima. Il comando può stare nella sua casella oppure sulla prima riga della casella dell’output, esattamente come lo mostra un terminale; lo strumento separa le due cose. Legge solo testo: nulla viene contattato, risolto, inviato o eseguito.

## La riga di comando

Ogni opzione viene mostrata nel suo gruppo (destinazione, nome del server, verifica, trust store, versioni del protocollo, suite di cifratura e gruppi, cosa stampa s_client, sessioni, certificato client, STARTTLS e ALPN, OCSP stapling, gestione dell’input, DANE, PSK, provider) con ciò che fa. Le opzioni vengono lette come le legge il parser delle opzioni di OpenSSL: `-name` e `--name` sono la stessa opzione, `--name=value` funziona, `--` chiude le opzioni e può essere seguito da una parola di destinazione. Un’opzione che non compare nella pagina della 3.5, un’opzione a cui manca il valore e un flag a cui viene dato un valore vengono segnalati, perché in ognuno di questi casi s_client si ferma con un errore di utilizzo. `-ocsp_check_leaf` e `-ocsp_check_all` sono arrivate con OpenSSL 3.6: lo strumento le spiega, le contrassegna con «Non presente in OpenSSL 3.5» e avvisa che un openssl 3.5 si ferma quando le incontra.

I valori predefiniti sono la fonte della maggior parte delle sorprese, quindi lo strumento indica quelli in vigore:

- **Dove si connette.** Senza `-connect` e senza parola di destinazione, s_client si connette all’host locale sulla porta 4433. Un valore di `-connect` senza porta mantiene quella 4433: `openssl s_client -connect example.com` non parla con la porta 443. Secondo BIO_parse_hostserv(3) un host indicato da solo lascia invariato il servizio, e s_client parte da 4433.
- **Il nome inviato come SNI.** Da OpenSSL 1.1.1, senza `-servername` l’host di `-connect` viene inviato come SNI (Server Name Indication) quando ha la forma di un nome DNS, non viene inviato nulla quando è un indirizzo IP (la RFC 6066 non ammette lì indirizzi IP letterali) e viene inviato «localhost» quando non c’è alcun `-connect`. `-servername` invia qualsiasi valore gli venga dato; `-noservername` non invia nulla.
- **La verifica non interrompe mai l’handshake.** Il certificato del server viene sempre controllato e il risultato stampato, ma senza `-verify_return_error` l’handshake prosegue qualunque sia il risultato: la pagina avvisa che s_client accetta qualsiasi catena e che un’applicazione reale che si comportasse così sarebbe esposta a un attacco man-in-the-middle. `-verify` attiva la verifica con un limite di profondità, e comunque non interrompe l’handshake.
- **Nessun nome host viene controllato.** `-servername` sceglie solo lo SNI. s_client confronta il certificato con un nome solo quando lo chiedono `-verify_hostname`, `-verify_ip`, `-verify_email` o DANE; senza uno di questi, «Verify return code: 0 (ok)» non dice nulla sul fatto che il certificato appartenga al sito.
- **Il trust store.** Senza `-CAfile`, `-CApath` o `-CAstore` decide lo store predefinito di quella build di openssl. OpenSSL non include trust anchor propri; le distribuzioni Linux di solito lo fanno puntare allo store di sistema, ed è per questo che lo stesso comando può superare la verifica su una macchina e fallire su un’altra.
- **Versioni del protocollo.** Per impostazione predefinita il client offre tutte le versioni che supporta. `-tls1_2` e le opzioni affini ammettono una sola versione e non si possono combinare con le opzioni `-no_*`, che SSL_CONF_cmd(3) indica come deprecate a favore di `-min_protocol` e `-max_protocol`. TLS 1.0 e 1.1 sono deprecati (RFC 8996) e rifiutati dal livello di sicurezza 1 in su, quindi per forzarli serve anche una stringa di cifratura con `@SECLEVEL=0`, che permette tutto.
- **Suite di cifratura e gruppi.** `-cipher` imposta solo l’elenco per TLS 1.2 e precedenti; le suite TLS 1.3 si impostano con `-ciphersuites`. Lo strumento segnala ciascuna delle due quando le opzioni di versione la rendono inutile. Senza `-groups`, OpenSSL 3.5 usa il suo elenco DEFAULT integrato, che inizia con l’ibrido post-quantistico X25519MLKEM768 e invia due key share nel ClientHello TLS 1.3, X25519MLKEM768 e X25519 (SSL_CTX_set1_groups_list(3), e l’elenco stesso in `ssl/t1_lib.c`).

Viene letta anche la shell attorno al comando: `echo |` o `</dev/null` davanti a s_client chiudono subito il suo input, e la pagina nota che un’esecuzione non interattiva può allora chiudersi troppo presto, soprattutto con TLS 1.3; una pipe verso `openssl x509` viene indicata. I segreti sulla riga di comando vengono segnalati: `-keylogfile` (un key log con cui Wireshark può decifrare il traffico), una password `pass:` visibile a `ps` e `-proxy_user` (autenticazione Basic in chiaro verso il proxy).

## L’output, blocco per blocco

L’output viene letto riga per riga, e ogni riga o blocco viene mostrato con i suoi numeri di riga e il suo significato. Ciò che stampa s_client non è descritto nelle pagine di manuale, quindi il formato è stato ricavato dal codice sorgente di OpenSSL al tag `openssl-3.5.9`. Vengono lette anche le righe che stampano solo OpenSSL 3.0 o 3.6, dal sorgente ai tag `openssl-3.0.13` e `openssl-3.6.5`, così viene spiegato anche l’output di quelle release:

- `Connecting to 127.0.0.1`: OpenSSL 3.5 stampa sullo standard error l’indirizzo a cui si è connesso non appena la connessione TCP è aperta (la 3.0 lì non stampava nulla);
- le righe `depth=N` / `verify error:num=N:text` / `verify return:1` della callback di verifica (la profondità 0 è il certificato del server; OpenSSL procede dalla radice verso il basso; `verify return:1` è s_client che sceglie di proseguire). OpenSSL 3.5 scrive i nomi come `C=BR, O=Example Lab, CN=www.example.test`; la 3.0 scriveva `C = BR, O = Example Lab, ...`;
- `CONNECTED(00000003)`, che dice solo che la connessione TCP è aperta (il numero è il descrittore di file del socket);
- `Certificate chain`, i certificati così come li ha inviati il server, con `s:` soggetto, `i:` emittente, `a:` chiave e algoritmo di firma e `v:` validità; la pagina precisa che non è una catena verificata. Nella 3.5 la chiave si legge `a:PKEY: RSA, 2048 (bit); sigalg: sha256WithRSAEncryption`, oppure `EC, (prime256v1)` per una chiave a curva ellittica; la 3.0 stampava `rsaEncryption` e `RSA-SHA256`;
- `Server certificate` con il suo PEM (il PEM di ogni certificato con `-showcerts`) e le righe `subject=` e `issuer=`;
- l’eventuale richiesta di certificato client, `Peer signing digest` e `Peer signature type`, che OpenSSL 3.5 indica con il nome IANA dello schema di firma, come `rsa_pss_rsae_sha256` (la 3.0 stampava `RSA-PSS`); poi la chiave effimera del server: `Peer Temp Key` nella 3.5, oppure `Negotiated TLS1.3 group` quando TLS 1.3 non ha un oggetto chiave temporaneo da mostrare, come con il gruppo ibrido post-quantistico X25519MLKEM768 che due peer OpenSSL 3.5 negoziano per impostazione predefinita (la 3.0 stampava `Server Temp Key`);
- `SSL handshake has read N bytes and written M bytes` (0 byte letti significa che il server non ha rimandato nulla);
- `Verification: OK` o `Verification error: text`, e `Verified peername` quando è stato controllato un nome host;
- `New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384` (o `Reused` per una sessione ripresa). La versione su questa riga è quella che ha definito per prima il cifrario (SSL_CIPHER_get_version), non necessariamente quella negoziata: una connessione TLS 1.1 stampa `New, TLSv1.0, Cipher is ECDHE-RSA-AES256-SHA`. La versione negoziata si trova sulla riga `Protocol:` che OpenSSL 3.5 stampa subito dopo, e nel blocco SSL-Session;
- `Server public key is N bit`, la riga della rinegoziazione (`Secure Renegotiation IS supported` fino a TLS 1.2; con TLS 1.3, che non prevede la rinegoziazione, la 3.5 stampa «This TLS version forbids renegotiation.» dove la 3.0 stampava `IS NOT supported`), la compressione, ALPN, gli early data;
- `Verify return code: N (text)`, il risultato finale della verifica, con il suo significato;
- il blocco `SSL-Session`, campo per campo. In TLS 1.2 compare una volta, dopo l’handshake; in TLS 1.3 compare una volta per ogni `Post-Handshake New Session Ticket arrived:`, perché il server invia i suoi ticket dopo l’handshake (RFC 9846, sezione 4.7.1). `Master-Key` (TLS 1.2) e `Resumption PSK` (TLS 1.3) sono segreti della sessione;
- con `-status`, la riga OCSP: `OCSP response: no response sent` (OpenSSL 3.5 e 3.0; la 3.6 l’ha cambiata in `no OCSP response received`, o in `OCSP responses: no responses sent` con TLS 1.3), oppure la risposta in stapling stampata tra due righe di segni `=`, da cui si leggono lo stato della risposta, il Cert Status e la finestra This Update / Next Update;
- il riepilogo di `-brief`, i passaggi di `-state` (`SSL_connect:...` e gli alert), i messaggi di `-msg` con i loro byte esadecimali, le letture e scritture di `-debug`, le estensioni di `-tlsextdebug`, le righe della chiave pubblica grezza (raw public key) della RFC 7250 e le righe della coda degli errori di OpenSSL, lette nel formato documentato da ERR_print_errors(3) (codice, libreria, funzione, motivo, file e riga).

Qualsiasi altra cosa, come una risposta HTTP inviata dal server dopo l’handshake, viene mostrata come dati e mai scartata.

## I codici di ritorno della verifica

Il numero in `verify error:num=N` e `Verify return code: N` è un codice X509_V_ERR. openssl-verify(1) rimanda a X509_STORE_CTX_get_error(3) per l’elenco e al file di intestazione `<openssl/x509_vfy.h>` per i numeri. Lo strumento contiene i 96 codici di OpenSSL 3.5.9 (da 0 a 95) con la loro costante, il testo esatto stampato e una lettura in parole semplici, e anche i sei codici aggiunti da OpenSSL 3.6 (da 96 a 101, cinque dei quali riguardano OCSP), contrassegnati come solo 3.6. Il testo tra parentesi viene da `crypto/x509/x509_txt.c`: per i codici da 0 a 94 è lo stesso nella 3.0.13 e nella 3.5.9, il codice 95 (una chiave pubblica grezza senza nulla configurato per considerarla attendibile) non esiste nella 3.0.13, e la 3.6 estende il codice 9 in «certificate is not yet valid or the system clock is incorrect». I più frequenti: 0 ok, 10 scaduto, 18 un certificato del server autofirmato, 19 una radice autofirmata, non attendibile per il client, in cima alla catena, 20 un emittente che non si trova né in ciò che ha inviato il server né nel trust store, 21 un singolo certificato che non si può verificare, e 62 nome host non corrispondente.

## Rilievi

I rilievi mettono insieme la lettura. I più frequenti: verifica fallita (con il significato del codice) e handshake proseguito comunque; un intermedio mancante, ricavato dall’errore 20 o 21 e dalla catena inviata dal server (l’ultimo certificato inviato nomina un emittente che non è mai stato inviato); una radice non attendibile, un certificato autofirmato, uno scaduto o non ancora valido, un nome non corrispondente; una verifica superata senza alcun controllo del nome host; un handshake fallito o che non ha letto nulla; TLS 1.0 o 1.1 negoziato; la trappola della versione sulla riga del cifrario; suite NULL, RC4, export, DES, 3DES o anonime, trasporto della chiave RSA, DHE a campo finito e suite CBC in TLS 1.2 (RFC 9325); una firma SHA-1 o MD5 in TLS 1.2 (RFC 9155); nessuna rinegoziazione sicura o nessun extended master secret in TLS 1.2 (RFC 9325, sezione 3.5); una catena fuori ordine o che contiene la propria radice (RFC 9846, sezione 4.5.1); OCSP non in stapling, good, revoked o unknown (RFC 6960); un’opzione che OpenSSL 3.5 non ha; e valori Master-Key o Resumption PSK da oscurare prima di condividere l’output.

## Le versioni di OpenSSL

Lo strumento si basa su OpenSSL 3.5 perché è la release con supporto a lungo termine: la strategia di rilascio di OpenSSL, consultata il 27 ottobre 2026, dà alla 3.5 supporto fino all’8 aprile 2030, alla 3.6 fino al 1 novembre 2026 e alla 4.0 fino al 14 maggio 2027, e indica la 3.0 come non più supportata; la pagina Downloads indica la 3.5.9, rilasciata il 29 settembre 2026, come release attuale della 3.5. Dove la 3.0 o la 3.6 stampano una riga in modo diverso, lo strumento legge anche quella e dice quale release la stampa. OpenSSL 4.1.0 è stata rilasciata il 23 ottobre 2026; la pagina della 4.1 rimuove `-engine` (eliminata nella 4.0), non elenca più `-ssl3` e fa sì che `-quiet` implichi `-verify_quiet`. Lo strumento segnala le prime due quando compaiono in un comando.

## Esempi

Il pulsante Esempio carica un’acquisizione nel formato di OpenSSL 3.5: un server che invia il proprio certificato senza l’intermedio, con il client che considera attendibile la radice tramite `-CAfile`. s_client stampa l’errore 20 e poi il 21 alla profondità 0, completa comunque l’handshake e termina con «Verify return code: 21 (unable to verify the first certificate)».

I vettori di test di riferimento (golden vectors) sono diciannove acquisizioni contro istanze locali di `openssl s_server` e una CA di test usa e getta: TLS 1.3 con una catena completa, TLS 1.2 forzato con ALPN h2, TLS 1.1 al livello di sicurezza 0, una CA sconosciuta il cui server invia anche la propria radice, un certificato autofirmato, `-verify_return_error` che interrompe l’handshake, `-showcerts`, `-brief`, `-status` con e senza risposta in stapling, un nome host non corrispondente e uno corrispondente, un certificato scaduto (tramite `-attime`), `-state`, `-msg` e `-reconnect` in entrambi i formati. Ognuna è un’esecuzione reale fatta il 27 ottobre 2026 con OpenSSL 3.5.9, compilato dalla release ufficiale dei sorgenti dopo averne controllato SHA-256 e firma, su entrambi i lati della connessione. Due peer 3.5.9 negoziano il gruppo ibrido X25519MLKEM768 con TLS 1.3, quindi quelle acquisizioni stampano `Negotiated TLS1.3 group: X25519MLKEM768` dove quelle TLS 1.2 stampano `Peer Temp Key: X25519, 253 bits`, e l’acquisizione `-msg` mostra il ClientHello che trasporta il key share di quel gruppo. Brevi vettori in formato riga coprono le righe che nessuna acquisizione contiene, come la forma EC di `a:PKEY`, il formato della 3.0 e le righe OCSP che stampa solo la 3.6, e ventisei righe di comando scritte per i test fissano le regole del lettore dei comandi. Nove vettori di condivisione fissano byte per byte la copia contenuta in un link creato con Condividi i risultati: i due valori Resumption PSK dell’Esempio, un Master-Key TLS 1.2, i sei di un’esecuzione `-reconnect`, i quattro segreti della riga di comando, le fonti che restano, le forme `--opt=value` e continuate, un comando in cima alla casella dell’output e la pass phrase di un altro comando; per ciascuno, la pagina che riceve il link legge gli stessi rilievi, meno solo quello sui segreti stampati.

## Strumenti correlati e letture

- **I certificati.** Incolla i blocchi PEM che `-showcerts` stampa nel [generatore di catene di certificati](https://ronutz.com/it/tools/cert-chain-builder), che li mette in ordine e indica un intermedio mancante, oppure un singolo certificato nel [decodificatore di certificati X.509](https://ronutz.com/it/tools/x509) per leggerne i campi e le estensioni. La pagina rimanda a entrambi accanto alla catena che mostra.
- **La suite di cifratura.** Il [decodificatore di suite di cifratura](https://ronutz.com/it/tools/cipher) scompone la suite della riga `Cipher is` nello scambio di chiavi, nell’autenticazione, nel cifrario e nel MAC, con il suo nome IANA e lo stato di raccomandazione.
- **Un BIG-IP dall’altra parte.** Quando il server è un virtual server BIG-IP, il suo profilo client-ssl stabilisce le versioni del protocollo e le suite di cifratura che s_client incontra: l’[analizzatore dei profili SSL F5](https://ronutz.com/it/tools/f5-ssl-profile-explainer) legge il profilo e l’[analizzatore di stringhe di cifratura F5](https://ronutz.com/it/tools/f5-cipher-string-expander) la sua stringa di cifratura.
- **Condividere un’acquisizione.** Oscura i segreti di sessione prima che un’acquisizione finisca su una slide o in un ticket. Il controllo dei segreti di [Da codice a immagine](https://ronutz.com/it/tools/code-to-image) non ha una regola per loro: lascia una riga TLS 1.3 `Resumption PSK:` così come è stampata, e maschera una riga TLS 1.2 `Master-Key:` solo perché la riga ha la forma di una chiave YAML con un nome che sembra segreto.
- **Letture.** [Reading openssl s_client](https://ronutz.com/it/learn/reading-openssl-s-client-output) spiega cosa controlla il comando e cosa dimostra l’output, e [Certificate chains](https://ronutz.com/it/learn/certificate-chains-order-anchors-and-what-breaks-them) spiega la catena dietro gli errori 20 e 21.

## Condivisione dei risultati

Sotto i rilievi, **Condividi i risultati** crea un link a questa pagina, solo quando lo premi, che contiene dopo il `#` entrambe le caselle con ogni valore segreto sostituito da `[redacted]`, mai così come le hai incollate: ogni `Master-Key` e `Resumption PSK` dei blocchi di sessione, una pass phrase indicata come `pass:` a `-pass` o `-proxy_pass` (o in quella forma in qualsiasi altro punto del testo), la chiave di `-psk` e la password di `-srppass`. Il suo riquadro a comparsa indica prima cosa contiene il link e quanti valori sono stati sostituiti, poi offre Copia link e, se il browser ne ha uno, il menu di condivisione; l’indirizzo della pagina non cambia.

Un output completo di s_client contiene quasi sempre uno dei due segreti di sessione, ed è per questo che il link contiene una copia invece del testo incollato. Tutto il resto rimane: i nomi host, la catena, le fonti `env:`, `file:`, `fd:` e `stdin` di una pass phrase ([openssl-passphrase-options(1)](https://docs.openssl.org/3.5/man1/openssl-passphrase-options/), consultata il 27/10/2026, indica solo la forma `pass:` come la password stessa) e i byte dei ticket, che senza il loro segreto non possono riprendere una sessione ([RFC 9846](https://www.rfc-editor.org/rfc/rfc9846), sezioni 4.7.1 e 4.3.11.2, consultata il 27/10/2026). La [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986) (sezione 3.5, consultata il 27/10/2026) stabilisce che il frammento viene separato dal resto dell’URI prima della dereferenziazione («separated from the rest of the URI prior to a dereference»), quindi la copia non viene inviata al server quando si apre il link; resta nella barra degli indirizzi e nella cronologia di chi lo apre, e chiunque abbia il link può leggerla.

- **Lunghezza massima.** Al massimo 16.384 caratteri in tutto, il limite che il sito applica a ogni valore dopo il `#`; una condivisione più lunga non ottiene il link e il riquadro a comparsa ne indica la lunghezza.
- **Apertura di un link.** Entrambe le caselle si compilano come farebbe un incolla (quella assente viene svuotata) e la pagina le spiega; come sempre, non ci si connette a nulla. I vettori di condivisione verificano che la pagina che riceve il link legga lo stesso handshake: gli stessi rilievi, meno solo quello sui segreti stampati. I valori lasciano poi subito l’indirizzo della pagina, senza alcuna richiesta, quindi un ricaricamento o il pulsante Condividi della pagina stessa non contengono nulla.
- **Link dalla console seriale.** Un report passato come `#input=` compila ancora la casella dell’output esattamente come prima; Condividi i risultati usa nomi propri (`command`, `output`), quindi le due cose non si mescolano mai.

## API

Lo stesso motore risponde all’operazione `/api/v1/openssl-s-client-explainer` dell’API HTTP del sito, descritta nel contratto OpenAPI della [pagina dell’API](https://ronutz.com/it/api), che indica anche se questo sito espone l’API. Oscura i valori Master-Key e Resumption PSK prima di inviare l’output ovunque, compresa questa API.

- **Richiesta.** Testo: la riga di comando, l’output, oppure la riga di comando seguita dall’output.
- **Risposta.** `command` (null quando non ne è stato trovato nessuno): `found`, `program`, `options` (ciascuna con `typed`, `name`, `value`, `known`, `group`, `text`, `dflt`, `since`, `deprecated`, `notIn35`, `problem`), `target` (`raw`, `from`, `host`, `port`, `portDefaulted`, `hostIsIp`), `sni` (`mode`, `value`, `text`), `stdinClosed`, `inputFrom`, `outputTo`, `absent` e `findings`. `output` (null quando non ce n’era): `recognised`, `layout` (`full`, `brief` o `unknown`), `lines`, `truncated`, `items` (ciascuno con `kind`, `start`, `end`, `text`, `fields`, `connection`, `explain` e `detail`), `connections` (una per handshake: protocollo, cifrario, verifica, catena, chiavi, ALPN, OCSP, ticket, segreti stampati, motivi degli errori) e `findings`. Poi `findings` (entrambi gli elenchi insieme, i più gravi per primi) e `splitFromOutput`. Ogni spiegazione è data come `{"en": ..., "pt": ...}`; ogni rilievo ha un `id` stabile, una `severity` (`high`, `warn` o `info`) e la `source` su cui si basa.
- **Errori.** Un testo che non è né un comando né un output di s_client non è un errore HTTP: i rilievi indicano `noCommandFound` o `notSClientOutput`.

## Fonti

- [OpenSSL Library, release strategy](https://openssl-library.org/policies/releasestrat/) (consultata il 27/10/2026): la 3.5 supportata fino all’08/04/2030 (LTS), la 3.6 fino al 01/11/2026, la 4.0 fino al 14/05/2027, la 3.0 non più supportata
- [OpenSSL Library, Downloads](https://openssl-library.org/source/) (consultata il 27/10/2026): la 3.5.9 del 29 settembre 2026, release attuale della 3.5, e la 4.1.0 del 23 ottobre 2026
- [OpenSSL 3.5, openssl-s_client(1)](https://docs.openssl.org/3.5/man1/openssl-s_client/) (consultata il 27/10/2026): ogni opzione, il valore predefinito dello SNI, -showcerts, -verify e -verify_return_error, le parole chiave di -starttls, l’uso non interattivo, HISTORY
- [OpenSSL 3.5, openssl-passphrase-options(1)](https://docs.openssl.org/3.5/man1/openssl-passphrase-options/) (consultata il 27/10/2026): la forma `pass:` («The actual password is password»), che un link creato con Condividi i risultati sostituisce, e le fonti `env:`, `file:`, `fd:` e `stdin`, che mantiene
- [OpenSSL 3.6, openssl-s_client(1)](https://docs.openssl.org/3.6/man1/openssl-s_client/) (consultata il 27/10/2026): -ocsp_check_leaf e -ocsp_check_all, aggiunte nella 3.6
- [OpenSSL 3.0, openssl-s_client(1)](https://docs.openssl.org/3.0/man1/openssl-s_client/) (consultata il 27/10/2026): la release il cui formato viene ancora letto
- [OpenSSL 4.1, openssl-s_client(1)](https://docs.openssl.org/4.1/man1/openssl-s_client/) (consultata il 27/10/2026): le modifiche successive alla 3.x
- [OpenSSL 3.5, openssl-verify(1)](https://docs.openssl.org/3.5/man1/openssl-verify/) (consultata il 27/10/2026): DIAGNOSTICS, il numero dell’errore e la profondità
- [OpenSSL 3.5, X509_STORE_CTX_get_error(3)](https://docs.openssl.org/3.5/man3/X509_STORE_CTX_get_error/) (consultata il 27/10/2026): l’elenco dei codici di verifica
- [OpenSSL 3.5, openssl-verification-options(1)](https://docs.openssl.org/3.5/man1/openssl-verification-options/) (consultata il 27/10/2026): trust store e opzioni di verifica
- [OpenSSL 3.5, SSL_CONF_cmd(3)](https://docs.openssl.org/3.5/man3/SSL_CONF_cmd/) (consultata il 27/10/2026): -cipher, -ciphersuites, -groups, -sigalgs, -min_protocol, le opzioni -no_* deprecate
- [OpenSSL 3.5, SSL_CTX_set1_groups_list(3)](https://docs.openssl.org/3.5/man3/SSL_CTX_set1_curves/) (consultata il 27/10/2026): i key share e l’elenco di gruppi DEFAULT
- [OpenSSL 3.5, openssl(1)](https://docs.openssl.org/3.5/man1/openssl/) (consultata il 27/10/2026): TLS Version Options
- [OpenSSL 3.5, SSL_CTX_set_verify(3)](https://docs.openssl.org/3.5/man3/SSL_CTX_set_verify/) (consultata il 27/10/2026): la verifica lato client con SSL_VERIFY_NONE
- [OpenSSL 3.5, SSL_CIPHER_get_name(3)](https://docs.openssl.org/3.5/man3/SSL_CIPHER_get_name/) (consultata il 27/10/2026): SSL_CIPHER_get_version
- [OpenSSL 3.5, SSL_get_peer_signature_nid(3)](https://docs.openssl.org/3.5/man3/SSL_get_peer_signature_nid/) (consultata il 27/10/2026): il nome IANA dello schema di firma, aggiunto nella 3.5
- [OpenSSL 3.5, EVP_PKEY_is_a(3)](https://docs.openssl.org/3.5/man3/EVP_PKEY_is_a/) (consultata il 27/10/2026): EVP_PKEY_get0_type_name, il nome del tipo di chiave nella riga a:PKEY
- [OpenSSL 3.5, SSL_CTX_set_security_level(3)](https://docs.openssl.org/3.5/man3/SSL_CTX_set_security_level/) (consultata il 27/10/2026): i livelli di sicurezza
- [OpenSSL 3.5, ERR_print_errors(3)](https://docs.openssl.org/3.5/man3/ERR_print_errors/) (consultata il 27/10/2026): il formato della riga di errore
- [OpenSSL 3.5, BIO_parse_hostserv(3)](https://docs.openssl.org/3.5/man3/BIO_parse_hostserv/) (consultata il 27/10/2026): un host senza servizio
- [OpenSSL 3.5, openssl-ciphers(1)](https://docs.openssl.org/3.5/man1/openssl-ciphers/) (consultata il 27/10/2026): i nomi delle suite di cifratura
- [Sorgente di OpenSSL, tag openssl-3.5.9, apps/s_client.c](https://github.com/openssl/openssl/blob/openssl-3.5.9/apps/s_client.c) (consultato il 27/10/2026), con apps/lib/s_cb.c, apps/lib/s_socket.c, apps/lib/apps.c, apps/lib/opt.c, ssl/ssl_txt.c, ssl/t1_lib.c, ssl/statem/statem_clnt.c, include/openssl/x509_vfy.h.in e crypto/x509/x509_txt.c allo stesso tag: il formato dell’output, la tabella delle opzioni e i codici
- [Sorgente di OpenSSL, tag openssl-3.6.5, apps/s_client.c](https://github.com/openssl/openssl/blob/openssl-3.6.5/apps/s_client.c) (consultato il 27/10/2026), con gli stessi file: le righe che stampa solo la 3.6
- [Sorgente di OpenSSL, tag openssl-3.0.13, apps/s_client.c](https://github.com/openssl/openssl/blob/openssl-3.0.13/apps/s_client.c) (consultato il 27/10/2026), con gli stessi file: le righe che stampa solo la 3.0
- [RFC 9846: The Transport Layer Security (TLS) Protocol Version 1.3](https://www.rfc-editor.org/rfc/rfc9846) (luglio 2026, rende obsolete la RFC 8446 e la RFC 5246; consultata il 27/10/2026)
- [RFC 6066: TLS Extensions](https://www.rfc-editor.org/rfc/rfc6066) (consultata il 27/10/2026): server_name e status_request
- [RFC 7301: TLS Application-Layer Protocol Negotiation Extension](https://www.rfc-editor.org/rfc/rfc7301) (consultata il 27/10/2026)
- [RFC 8996: Deprecating TLS 1.0 and TLS 1.1](https://www.rfc-editor.org/rfc/rfc8996) (consultata il 27/10/2026)
- [RFC 9325: Recommendations for Secure Use of TLS and DTLS](https://www.rfc-editor.org/rfc/rfc9325) (consultata il 27/10/2026)
- [RFC 5246: TLS 1.2](https://www.rfc-editor.org/rfc/rfc5246) (consultata il 27/10/2026): sezione 8.1, il master secret, e sezione 6.3, le chiavi che ne derivano
- [RFC 5746: TLS Renegotiation Indication Extension](https://www.rfc-editor.org/rfc/rfc5746) (consultata il 27/10/2026)
- [RFC 9155: Deprecating MD5 and SHA-1 Signature Hashes in TLS 1.2 and DTLS 1.2](https://www.rfc-editor.org/rfc/rfc9155) (consultata il 27/10/2026)
- [RFC 6960: Online Certificate Status Protocol](https://www.rfc-editor.org/rfc/rfc6960) (consultata il 27/10/2026): sezione 2.2, gli stati del certificato
- [RFC 3986, Uniform Resource Identifier (URI): Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986) (consultata il 27/10/2026): sezione 3.5, il frammento, che contiene i valori di un link creato con Condividi i risultati

## Standards and references

- [OpenSSL 3.5 manual, openssl-s_client(1): every option, the SNI default since 1.1.1, -showcerts (not a verified chain), -verify and -verify_return_error, the starttls keywords, the note on non-interactive use, HISTORY](https://docs.openssl.org/3.5/man1/openssl-s_client/)
- [OpenSSL Library, downloads: openssl-3.5.9, the 3.5 [LTS] release of 29 September 2026, with its SHA-256 and PGP signature; the build that made the golden-vector runs (hash and signature checked)](https://openssl-library.org/source/)
- [OpenSSL Library, release strategy: version 3.5 is supported until 2030-04-08 (LTS), 3.6 until 2026-11-01, 4.0 until 2027-05-14; 3.0 is no longer supported](https://openssl-library.org/policies/releasestrat/)
- [OpenSSL Library, downloads: 3.5.9 (released 29 Sep 2026, end of life 08 Apr 2030) is the current 3.5 [LTS] release; versions not listed are out of support](https://openssl-library.org/source/)
- [OpenSSL 3.6 manual, openssl-s_client(1): -ocsp_check_leaf and -ocsp_check_all, added in OpenSSL 3.6 (kept and marked: 3.5 has neither)](https://docs.openssl.org/3.6/man1/openssl-s_client/)
- [OpenSSL 3.0 manual, openssl-s_client(1): the release whose output layout is still read (Server Temp Key, spaced names)](https://docs.openssl.org/3.0/man1/openssl-s_client/)
- [OpenSSL 4.1 manual, openssl-s_client(1): what changed after 3.x (-engine removed in 4.0, -ssl3 no longer listed, -quiet implies -verify_quiet, ECH options)](https://docs.openssl.org/4.1/man1/openssl-s_client/)
- [OpenSSL 3.5 manual, openssl-verify(1), DIAGNOSTICS: the error number and depth, and where the list of codes lives](https://docs.openssl.org/3.5/man1/openssl-verify/)
- [OpenSSL 3.5 manual, X509_STORE_CTX_get_error(3), ERROR CODES: every verification code with its message and description (3.6 adds five OCSP codes, kept and marked)](https://docs.openssl.org/3.5/man3/X509_STORE_CTX_get_error/)
- [OpenSSL 3.5 manual, openssl-verification-options(1): trusted certificate options (-CAfile, -CApath, -CAstore, no default trust anchors shipped), verification options (-verify_hostname, -verify_ip, -attime, -partial_chain, -x509_strict, -purpose, -auth_level)](https://docs.openssl.org/3.5/man1/openssl-verification-options/)
- [OpenSSL 3.5 manual, SSL_CONF_cmd(3), SUPPORTED COMMAND LINE COMMANDS: -cipher, -ciphersuites, -groups and -curves (X25519MLKEM768 first in the default list from 3.5), -sigalgs, -no_ticket, -min_protocol, -max_protocol, the deprecated -no_* options, middlebox compatibility](https://docs.openssl.org/3.5/man3/SSL_CONF_cmd/)
- [OpenSSL 3.5 manual, SSL_CTX_set1_groups_list(3): the key shares a client sends (* prefix, at most four) and the DEFAULT list, which predicts X25519MLKEM768](https://docs.openssl.org/3.5/man3/SSL_CTX_set1_curves/)
- [OpenSSL 3.5 manual, openssl(1), TLS Version Options: one version only, not combined with -no_*; by default the client offers its lowest to highest version](https://docs.openssl.org/3.5/man1/openssl/)
- [OpenSSL 3.5 manual, SSL_CTX_set_verify(3): in client mode with SSL_VERIFY_NONE the certificate is still checked and the handshake continues regardless](https://docs.openssl.org/3.5/man3/SSL_CTX_set_verify/)
- [OpenSSL 3.5 manual, SSL_CIPHER_get_name(3): SSL_CIPHER_get_version returns the version that first defined the cipher](https://docs.openssl.org/3.5/man3/SSL_CIPHER_get_name/)
- [OpenSSL 3.5 manual, SSL_get_peer_signature_nid(3): SSL_get0_peer_signature_name returns the IANA name of the peer's signature scheme (added in 3.5)](https://docs.openssl.org/3.5/man3/SSL_get_peer_signature_nid/)
- [OpenSSL 3.5 manual, SSL_CTX_set_security_level(3): levels 0 to 5; SSLv3, TLS 1.0 and 1.1 disabled from level 1](https://docs.openssl.org/3.5/man3/SSL_CTX_set_security_level/)
- [OpenSSL 3.5 manual, ERR_print_errors(3): the format of an error-queue line](https://docs.openssl.org/3.5/man3/ERR_print_errors/)
- [OpenSSL 3.5 manual, openssl-passphrase-options(1): pass:password is visible to ps](https://docs.openssl.org/3.5/man1/openssl-passphrase-options/)
- [OpenSSL 3.5 manual, BIO_parse_hostserv(3): a host with no port leaves the service untouched (so s_client keeps 4433)](https://docs.openssl.org/3.5/man3/BIO_parse_hostserv/)
- [OpenSSL 3.5 manual, openssl-ciphers(1), CIPHER SUITE NAMES: standard and OpenSSL names; names without an authentication part use RSA](https://docs.openssl.org/3.5/man1/openssl-ciphers/)
- [OpenSSL source at tag openssl-3.5.9: apps/s_client.c (print_stuff, print_cert_key_info, ocsp_resp_cb, new_session_cb, option table), apps/lib/s_cb.c (verify_callback, ssl_print_sigalgs, ssl_print_tmp_key, ssl_print_secure_renegotiation_notes, print_ssl_summary), apps/lib/s_socket.c (init_client), apps/lib/apps.c (get_nameopt), apps/lib/opt.c, ssl/ssl_txt.c, ssl/t1_lib.c, include/openssl/x509_vfy.h.in, crypto/x509/x509_txt.c](https://github.com/openssl/openssl/blob/openssl-3.5.9/apps/s_client.c)
- [OpenSSL source at tag openssl-3.6.5: the same files, for the lines only 3.6 prints (OCSP responses: wording, -ocsp_check_* messages, codes 96 to 101)](https://github.com/openssl/openssl/blob/openssl-3.6.5/apps/s_client.c)
- [OpenSSL source at tag openssl-3.0.13: the same files, for the lines only 3.0 prints (Server Temp Key, spaced names, rsaEncryption key names)](https://github.com/openssl/openssl/blob/openssl-3.0.13/apps/s_client.c)
- [RFC 9846, The Transport Layer Security (TLS) Protocol Version 1.3 (July 2026; obsoletes RFC 8446 and RFC 5246): 4.5.1 certificate list order, 4.7.1 tickets and the resumption PSK, Appendix E extended main secret](https://www.rfc-editor.org/rfc/rfc9846)
- [RFC 6066, TLS Extensions: section 3 (server_name: no IP literals) and section 8 (status_request)](https://www.rfc-editor.org/rfc/rfc6066)
- [RFC 7301, TLS Application-Layer Protocol Negotiation Extension](https://www.rfc-editor.org/rfc/rfc7301)
- [RFC 8996, Deprecating TLS 1.0 and TLS 1.1](https://www.rfc-editor.org/rfc/rfc8996)
- [RFC 9325 (BCP 195), Recommendations for Secure Use of TLS and DTLS: 3.5 renegotiation_info and extended_master_secret, 4.1 and 4.2 cipher suites](https://www.rfc-editor.org/rfc/rfc9325)
- [RFC 5246, TLS 1.2: section 8.1, the 48-byte master secret, and section 6.3, the keys derived from it](https://www.rfc-editor.org/rfc/rfc5246)
- [RFC 5746, TLS Renegotiation Indication Extension](https://www.rfc-editor.org/rfc/rfc5746)
- [RFC 9155, Deprecating MD5 and SHA-1 Signature Hashes in TLS 1.2 and DTLS 1.2](https://www.rfc-editor.org/rfc/rfc9155)
- [RFC 6960, Online Certificate Status Protocol (OCSP): section 2.2, good, revoked and unknown](https://www.rfc-editor.org/rfc/rfc6960)

## Related reading

- [Certificate chains: the order, the anchor, and what breaks them](https://ronutz.com/en/learn/certificate-chains-order-anchors-and-what-breaks-them.md): A server certificate is only the last link. How a client builds the path from the leaf to a root it trusts, why the order of the Certificate message matters and what TLS 1.3 relaxed, why the root is normally left out, how key identifiers and names link one certificate to the next, what pathLenConstraint, cA and keyCertSign forbid, why a cross-signed root appears in a chain as if it were an intermediate, and why the same chain works in one browser and fails in another. With RFC 5280, RFC 8446, the Baseline Requirements and a live Let's Encrypt chain.
- [Certificates, Keys, and Chain Building in an SSL Profile](https://ronutz.com/en/learn/f5-ssl-cert-key-chain.md): A client-ssl profile binds a server certificate to its private key and, crucially, to a chain bundle that lets clients build a path to a trusted root. The modern cert-key-chain construct also lets one profile serve several certificate types, picked per client, which is the foundation of RSA-plus-ECDSA and SNI deployments.
- [How certificate validation actually works](https://ronutz.com/en/learn/certificate-validation.md): The steps a client runs to decide a certificate is trustworthy: building the chain, checking signatures and dates, matching the name, and enforcing constraints.
- [Hybrid Key Exchange in TLS 1.3: What X25519MLKEM768 Does on the Wire](https://ronutz.com/en/learn/hybrid-key-exchange-in-tls.md): The web did not swap classical key exchange for post-quantum; it runs both at once. X25519MLKEM768 combines a 1990s elliptic curve with lattice-based ML-KEM-768 in a single TLS 1.3 group, so a break of either still leaves the session secure. This covers why hybrid rather than replacement, the wire format and its size problem, and where deployment stands across browsers, servers, and the middleboxes it breaks.
- [OCSP Must-Staple: Closing the Soft-Fail Gap](https://ronutz.com/en/learn/ocsp-must-staple.md): Real-time OCSP checking has a fatal weakness: when the responder is unreachable, clients usually proceed anyway. OCSP stapling and the Must-Staple flag are the fix. What the TLS Feature extension declares, and the operational risk it carries.
- [Python cryptography and TLS: the ssl module, pyca/cryptography and reading certificates](https://ronutz.com/en/learn/python-cryptography-and-tls.md): Python reaches TLS and cryptography through two layers that are patched separately: the standard ssl module, a wrapper around the OpenSSL the interpreter was built with, and the pyca/cryptography package, whose wheels carry their own OpenSSL and which divides itself into safe recipes and a hazardous-materials layer. This part of the Python series builds a lab CA with cryptography, runs a TLS server on 127.0.0.1 to show what create_default_context() verifies, how SNI and ALPN behave and what a name mismatch looks like, reproduces the series' finding that Python 3.13 rejects a certificate without an Authority Key Identifier, diagnoses it from the certificate's side, and encrypts and signs a configuration backup with Fernet, AES-GCM and Ed25519.
- [Reading openssl s_client: what the command checks and what the output proves](https://ronutz.com/en/learn/reading-openssl-s-client-output.md): openssl s_client is the first thing most engineers run against a TLS server, and its output is easy to misread: it finishes the handshake even when the certificate fails, it never checks a host name unless told to, a missing port means 4433, and the version on the cipher line is not the version negotiated. Read against the manual of OpenSSL 3.5, the long-term-support release: the defaults the command does not show, every block of the output from the depth lines to the TLS 1.3 session tickets, the verify return codes that matter, and a command that actually checks what you think it checks.
- [Renegotiation, Secure Renegotiation, and OCSP Stapling](https://ronutz.com/en/learn/f5-ssl-renegotiation-and-ocsp.md): Three SSL profile settings shape the handshake's safety after the first message: renegotiation decides whether a connection may renegotiate at all, secure-renegotiation enforces the RFC 5746 protection, and ocsp-stapling lets the BIG-IP attach a fresh revocation proof so clients need not phone the CA.
- [TLS 1.2 vs TLS 1.3 vs DTLS vs QUIC: One Handshake Family, Four Shapes](https://ronutz.com/en/learn/tls12-tls13-dtls-quic.md): TLS 1.2 and TLS 1.3 secure a TCP stream, DTLS carries the same guarantees over datagrams, and QUIC absorbs the TLS 1.3 handshake into the transport itself. What each one is, which RFC defines it today, what actually changed between them, and where each one runs.
