Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTsnipServerTLSOctetConnection.PeerCertificate

property PeerCertificate: iCertificate read GetPeerCertificate;
The certificate the client authenticated with when the server requested one (mTLS), nil otherwise and after the TLS session has closed. It has passed the server engine's trust configuration and the client- authentication checks of the handshake; what is left for the application is authorization: whether THIS certificate may make this call.

ON A RESUMED TLS 1.3 SESSION it is nil: the server does not ask for a certificate again on a PSK resumption, and the ticket does not carry one. A deployment that authorizes on the client certificate either turns resumption off on that listener (Options.SessionResumption := False) or treats nil as "not authenticated", which is what it means.