Skip to content

Commit dbfcbb1

Browse files
committed
[Mailer][Smtp] Add DSN param peer_fingerprint for fingerprint verification
documentation for symfony/symfony#51450
1 parent 80f7c9e commit dbfcbb1

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:pass@smtp.example.com?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:pass@smtp.example.com?peer_fingerprint=6A1CF3B08D175A284C30BC10DE19162307C7286E';
346+
347+
337348
Overriding default SMTP authenticators
338349
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
339350

0 commit comments

Comments
 (0)