File: README

package info (click to toggle)
rabbitmq-server 2.8.4-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,928 kB
  • sloc: erlang: 52,968; python: 2,846; xml: 1,987; sh: 816; makefile: 683; perl: 86; ruby: 63
file content (32 lines) | stat: -rw-r--r-- 1,182 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Authenticates the user, obtaining the username from the client's
SSL certificate. The user's password is not checked.

In order to use this mechanism the client must connect over SSL, and
present a client certificate.

For safety the server must be configured with the SSL options
fail_if_no_peer_cert set to true and verify set to verify_peer, to
force all SSL clients to have a verifiable client certificate.

By default this will set the username to an RFC4514-ish string form of
the certificate's subject's Distinguished Name, similar to that
produced by OpenSSL's "-nameopt RFC2253" option.

You can obtain this string form from a certificate with a command like:

$ openssl x509 -in path/to/cert.pem -nameopt RFC2253 -subject -noout

or from an existing amqps connection with commands like:

$ rabbitmqctl list_connections peer_cert_subject

To use the Common Name instead, set:

{rabbit, [{ssl_cert_login_from, common_name}]}

in your configuration.

Note that the authenticated user will then be looked up in the
configured authentication / authorisation backend(s) - this will be
the mnesia-based user database by default, but could include other
backends if so configured.