@@ -44,15 +44,29 @@ To configure a node to run the TLS tests, configure the node to use the [certifi
44
44
under ` TestCertificates ` . The certificates have a Subject Alternative Name of ` localhost `
45
45
which makes them not to be dependent on the host they were generated on.
46
46
47
- The following [ RabbitMQ configuration file] ( https://www.rabbitmq.com/configure.html#configuration-files ) is used by CI:
47
+ The test suite also requires the [ x509 certificate authentication mechanism] ( https://github.com/rabbitmq/rabbitmq-auth-mechanism-ssl )
48
+ plugin to be enabled:
49
+
50
+ ``` shell
51
+ brew install rabbitmq
52
+ # target location will vary depending on how RabbitMQ was installed,
53
+ # the Homebrew Cellar location and so on
54
+ cp TestCertificates/* /usr/local/etc/rabbitmq/
55
+ rabbitmq-plugins enable rabbitmq_auth_mechanism_ssl --offline
56
+ ```
57
+
58
+ Then restart RabbitMQ.
59
+
60
+ The following [ RabbitMQ configuration file] ( https://www.rabbitmq.com/configure.html#configuration-files )
61
+ is used by CI and can be used as example:
48
62
49
63
``` ini
50
64
listeners.tcp.1 = 0.0.0.0:5672
51
65
listeners.tcp.2 = 0.0.0.0:5674
52
66
53
-
54
67
listeners.ssl.default = 5671
55
68
69
+ # the paths must match those
56
70
ssl_options.cacertfile = /usr/local/etc/rabbitmq/ca_certificate.pem
57
71
ssl_options.certfile = /usr/local/etc/rabbitmq/server_certificate.pem
58
72
ssl_options.keyfile = /usr/local/etc/rabbitmq/server_key.pem
@@ -65,16 +79,8 @@ auth_mechanisms.2 = AMQPLAIN
65
79
auth_mechanisms.3 = EXTERNAL
66
80
```
67
81
68
- The test suite also requires the [ x509 certificate authentication mechanism] ( https://github.com/rabbitmq/rabbitmq-auth-mechanism-ssl )
69
- plugin to be enabled:
70
-
71
- ``` shell
72
- brew install rabbitmq
73
- cp TestCertificates/* /path/to/rabbitmq/installation/etc/rabbitmq/
74
- rabbitmq-plugins enable rabbitmq_auth_mechanism_ssl --offline
75
- ```
76
-
77
- Then restart RabbitMQ.
82
+ In case a different set of certificates is desired, it is highly recommended
83
+ [ using tls-gen] ( https://github.com/michaelklishin/tls-gen ) 's basic profile.
78
84
79
85
### Node Preconfiguration
80
86
0 commit comments