Skip to content

Commit b7a7b49

Browse files
committed
minor #14250 Add AMPS support entry (vasilvestre)
This PR was merged into the master branch. Discussion ---------- Add AMPS support entry Fix #14249 Commits ------- 98dcd36 Add AMPS support
2 parents c9643cb + 98dcd36 commit b7a7b49

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

messenger.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,12 @@ options.
844844
AMQP Transport
845845
~~~~~~~~~~~~~~
846846

847+
.. versionadded:: 5.2
848+
849+
Starting from Symfony 5.2, the AMQP transport can handle AMQPS DSN.
850+
Be aware that using it without using CA certificate can throw an exception.
851+
An alternative is to use AMQP DSN and specify the port to use.
852+
847853
.. versionadded:: 5.1
848854

849855
Starting from Symfony 5.1, the AMQP transport has moved to a separate package.
@@ -860,7 +866,13 @@ The ``amqp`` transport configuration looks like this:
860866
# .env
861867
MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
862868
869+
# or use the AMQPS protocol
870+
MESSENGER_TRANSPORT_DSN=amqps://guest:guest@localhost/%2f/messages
871+
872+
863873
To use Symfony's built-in AMQP transport, you need the AMQP PHP extension.
874+
If you want to use TLS/SSL encrypted AMQP you must provide a CA certificate. You need to set it using ``amqp.cacert = /etc/ssl/certs`` (path depends on your system) in your ``php.ini`` file or by setting the ``cacert`` parameter (e.g ``amqps://localhost?cacert=/etc/ssl/certs/``)
875+
By default TLS/SSL encrypted AMQP uses port 5671. You can overwrite this behavior by setting the ``port`` parameter (e.g. ``amqps://localhost?cacert=/etc/ssl/certs/&port=12345``).
864876

865877
.. note::
866878

0 commit comments

Comments
 (0)