@@ -160,25 +160,29 @@ certificates from a directory.
160160
161161### Listing certificates
162162
163- To list the currently loaded certificates use the ` rabbitmqctl ` utility as follows :
163+ To list the currently loaded certificates, use ` rabbitmqctl ` :
164164
165- ```
166- rabbitmqctl eval 'io:format(rabbit_trust_store:list()).'
165+ ``` sh
166+ # Available as of RabbitMQ `4.3.0`, `4.2.6`
167+ rabbitmqctl list_trust_store_certificates
167168```
168169
169- This will output a formatted list of certificates similar to:
170+ This will output a table of certificates similar to:
170171
171172```
172- Name: cert.pem
173- Serial: 1 | 0x1
174- Subject: O=client,CN=snowman.local
175- Issuer: L=87613,CN=MyTestRootCA
176- Validity: "2016-05-24T15:28:25Z - 2026-05-22T15:28:25Z"
173+ Listing trust store certificates on node rabbit@hostname...
174+ name serial subject issuer validity
175+ cert.pem 0x1 O=client,CN=snowman.local L=87613,CN=MyTestRootCA 2016-05-24T15:28:25Z - 2026-05-22T15:28:25Z
177176```
178177
179- Note that this command reads each certificate from disk in order to extract
180- all the relevant information. If there are a large number of certificates in the
181- trust store use this command sparingly.
178+ ### Refreshing certificates
179+
180+ To trigger a manual refresh of the trust store certificates, use ` rabbitmqctl ` :
181+
182+ ``` sh
183+ # Available as of RabbitMQ `4.3.0`, `4.2.6`
184+ rabbitmqctl refresh_trust_store
185+ ```
182186
183187
184188## How it Works
@@ -188,23 +192,11 @@ whitelists the certificates in the given directory, then accepting
188192sockets can query the trust-store with their client's certificate. It
189193refreshes the whitelist to correspond with changes in the directory's
190194contents, installing and removing certificate details, after a refresh
191- interval or a manual refresh (by invoking a `rabbitmqctl eval
192- 'rabbit_trust_store: refresh ().'` from the commandline).
193-
194-
195- ## Building from Source
196-
197- See [ Plugin Development guide] ( https://www.rabbitmq.com/plugin-development.html ) .
198-
199- TL;DR: running
200-
201- make dist
202-
203- will build the plugin and put build artifacts under the ` ./plugins ` directory.
195+ interval or a manual refresh (by running ` rabbitmqctl refresh_trust_store ` ).
204196
205197
206198## Copyright and License
207199
208- (c) 2007-2024 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
200+ (c) 2007-2026 Broadcom. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries. All rights reserved.
209201
210- Released under the MPL , the same license as RabbitMQ.
202+ Released under the MPLv2 , the same license as RabbitMQ.
0 commit comments