Skip to content

Commit de3afac

Browse files
committed
feature #18778 [Mailer] [Smtp] Add DSN param peer_fingerprint for fingerprint verification (xdavidwu)
This PR was merged into the 6.4 branch. Discussion ---------- [Mailer] [Smtp] Add DSN param `peer_fingerprint` for fingerprint verification Refs * symfony/symfony#51450 Commits ------- dbfcbb1 [Mailer][Smtp] Add DSN param `peer_fingerprint` for fingerprint verification
2 parents 0d85cc1 + dbfcbb1 commit de3afac

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mailer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,17 @@ the application or when using a self-signed certificate::
334334

335335
$dsn = 'smtp://user:[email protected]?verify_peer=0';
336336

337+
TLS Peer Fingerprint Verification
338+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339+
340+
Additional fingerprint verification can be enforced with the ``peer_fingerprint``
341+
option. This is especially useful when a self-signed certificate is used and
342+
disabling ``verify_peer`` is needed, but security is still desired. Fingerprint
343+
may be specified in sha1 (40 characters) or md5 (32 characters)::
344+
345+
$dsn = 'smtp://user:[email protected]?peer_fingerprint=6A1CF3B08D175A284C30BC10DE19162307C7286E';
346+
347+
337348
Overriding default SMTP authenticators
338349
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339350

0 commit comments

Comments
 (0)