We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
peer_fingerprint
1 parent 80f7c9e commit dbfcbb1Copy full SHA for dbfcbb1
mailer.rst
@@ -334,6 +334,17 @@ the application or when using a self-signed certificate::
334
335
$dsn = 'smtp://user:pass@smtp.example.com?verify_peer=0';
336
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
348
Overriding default SMTP authenticators
349
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
350
0 commit comments