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:
niku64 2019-04-25 14:34:51 +03:00 committed by GitHub
commit 39ae760f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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'

View File

@ -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