mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 10:25:23 +00:00
Merge pull request #9 from rbkmoney/fix-nginx-tls-client
Fix $ssl_client_cn_nodot regexp in tls-client.conf
This commit is contained in:
commit
39ae760f2a
@ -9,7 +9,7 @@ map $ssl_client_s_dn $ssl_client_cn {
|
||||
}
|
||||
map $ssl_client_s_dn $ssl_client_cn_nodot {
|
||||
default "";
|
||||
~[/,]?CN=([^/,.]*)\.?(?[^/,]+) $1$2;
|
||||
~[/,]?CN=([^/,.]*)\.?([^/,]+) $1$2;
|
||||
}
|
||||
|
||||
log_format tls_client '[$time_local] $http_host $remote_addr $ssl_client_s_dn_cn'
|
||||
|
@ -1,6 +1,5 @@
|
||||
# -*- mode: yaml -*-
|
||||
include:
|
||||
- ssl.openssl
|
||||
- lib.openssl
|
||||
|
||||
ca-certificates:
|
||||
pkg.latest:
|
||||
@ -44,5 +43,3 @@ ca-certificates-dirs:
|
||||
- file: /etc/ca-certificates.conf
|
||||
- file: ca-certificates-dirs
|
||||
- file: /usr/local/share/ca-certificates
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user