openssl: s_client doesn't report used hybrid PQC group used in the connection

Using openssl-3.2.2 on RHEL-10 and current master (e899361b982651df) when connection is negotiated with a hybrid key exchange (SecP256r1MLKEM768 or X25519MLKEM768) then the s_client doesn’t report the used key exchange group.

When the connection uses X25519 I see:

---                                                                          
No client certificate CA names sent                                          
Peer signing digest: SHA256                                                  
Peer signature type: RSA-PSS                                                                                                                               
Server Temp Key: X25519, 253 bits                                                                                                                          
--- 

But when either of the hybrid groups is negotiated, this section of the output is missing the Server Temp Key::

---                                                                                                                                                        
No client certificate CA names sent                                                                                                                        
Peer signing digest: SHA256                                                                                                                                
Peer signature type: RSA-PSS                                                                                                                               
---   

I’m using oqsprovider-0.7.0 and liboqs-0.11.0 for the test

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Plausibly we could print out something like “Server Temp Key: None (ML-KEM-768)”, but that might be a bit confusing (if technically accurate). Or perhaps we print out a different label entirely if we detect there is no temp key, e.g. “KEM negotiated: ML-KEM-768”

#25959 was merged. Closing.