Skip to content

Commit ca56b2a

Browse files
committed
Document peer certificate fingerprinting
1 parent 0462292 commit ca56b2a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

data/settings.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10209,6 +10209,17 @@ The most common choices are \`commonName\` and \`x500UniqueIdentifier\`.
1020910209
Note: [[setting,auth_ssl_username_from_cert]] MUST be enabled.`
1021010210
},
1021110211

10212+
ssl_peer_certificate_fingerprint_hash: {
10213+
default: '',
10214+
seealso: [ 'ssl', '[[link,ssl_configuration]]' ],
10215+
values: setting_types.STRING,
10216+
text: `
10217+
An OpenSSL digest algorithm name to use to hash peer certificate names.
10218+
Setting this value enables \`ssl_ccert_fp\` and \`ssl_ccert_pubkey_fp\`
10219+
availability in [[setting,login_log_format_elements]] and also in authentication
10220+
variables. Weak algorithms are explicitly blacklisted, such as MD5.`,
10221+
},
10222+
1021210223
ssl_cipher_list: {
1021310224
default: 'ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH (for ssl_server, empty for ssl_client)',
1021410225
seealso: [ 'ssl', 'ssl_cipher_suites', 'ssl_min_protocol', '[[link,ssl_configuration]]' ],

docs/core/settings/variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ See also:
288288
| `ssl_security` | TLS session security string. If HAProxy is configured and it terminated the TLS connection, contains "(proxied)". |
289289
| `ssl_ja3` | [[link,ssl_ja3]] composed from TLS Client Hello. |
290290
| `ssl_ja3_hash` | MD5 hash from [[link,ssl_ja3]] composed from TLS Client Hello. |
291+
| `ssl_ccert_fp` | [[setting,ssl_peer_certificate_fingerprint_hash]] of client certificate. |
292+
| `ssl_ccert_pubkey_fp` | [[etting,ssl_peer_certificate_fingerprint_hash]] of client certificate public key. |
291293
| `mail_pid` | PID for process that handles the mail session post-login. |
292294
| `original_user` | Same as `user`, except using the original username the client sent before any changes by auth process. With master user logins (also with [[setting,auth_master_user_separator]] based logins),this contains only the original master username. |
293295
| `listener` | Socket listener name as specified in config file, which accepted the client connection. |
@@ -323,6 +325,8 @@ See also:
323325
| `password` | Cleartext password from cleartext authentication mechanism. |
324326
| `secured` | "TLS" with established SSL/TLS connections, "secured" with secured connections (see: [[setting,ssl]]). Otherwise empty. |
325327
| `ssl_ja3_hash` | MD5 hash from JA3 string composed from TLS Client Hello. |
328+
| `ssl_ccert_fp` | [[setting,ssl_peer_certificate_fingerprint_hash]] of client certificate. |
329+
| `ssl_ccert_pubkey_fp` | [[etting,ssl_peer_certificate_fingerprint_hash]] of client certificate public key. |
326330
| `cert` | "valid" if client had sent a valid client certificate, otherwise empty. |
327331
| `login_user` | For master user logins: Logged in user@domain. |
328332
| `master_user` | For master user logins: The master username. |

0 commit comments

Comments
 (0)