mirror of
https://github.com/minio/minio.git
synced 2025-12-08 00:32:28 -05:00
NATS TLS specify CA and client TLS authentication (#8389)
- added ability to specify CA for self-signed certificates - added option to authenticate using client certificates - added unit tests for nats connections
This commit is contained in:
18
pkg/event/target/testdata/nats_tls_client_cert.conf
vendored
Normal file
18
pkg/event/target/testdata/nats_tls_client_cert.conf
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
port: 14226
|
||||
net: localhost
|
||||
|
||||
tls {
|
||||
cert_file: "./testdata/certs/nats_server_cert.pem"
|
||||
key_file: "./testdata/certs/nats_server_key.pem"
|
||||
ca_file: "./testdata/certs/root_ca_cert.pem"
|
||||
verify_and_map: true
|
||||
}
|
||||
authorization {
|
||||
ADMIN = {
|
||||
publish = ">"
|
||||
subscribe = ">"
|
||||
}
|
||||
users = [
|
||||
{user: "CN=localhost,OU=Client,O=Minio,C=CA", permissions: $ADMIN}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user