propertyiHttpConnectionInfo.PeerSubject
property PeerSubject: string read GetPeerSubject;
The client certificate's subject distinguished name, rendered RFC 4514 style with the most specific attribute FIRST and with the reserved characters escaped: 'CN=alice, OU=Ops, O=Corp, C=SE'. Attribute types the renderer has no standard label for are omitted rather than guessed at, so this is a faithful rendering of the recognised attributes and not necessarily of every byte in the DN. PREFER (PeerIssuer, PeerSerialNumber) AS AN AUTHORIZATION KEY, not this. A DN string is a rendering, and two renderings of the same name can differ over encoding, case and normalisation, while the issuer/serial pair is defined by RFC 5280 to identify exactly one certificate. Use the subject to log, to display, and to read - and if you must match on it, match the individual attributes (PeerSubjectCN and the certificate's own accessors) rather than the assembled string. A subject is in any case only unique WITHIN one issuer, so a subject test that ignores the issuer is satisfied by any CA your configuration trusts. With exactly one trusted CA that is a distinction without a difference; the moment there are two, it is the whole difference.