Merge pull request #889 from Neilpang/dev

fix openssl 1.1.0 for https://github.com/Neilpang/acme.sh/issues/888
This commit is contained in:
neil 2017-06-18 09:56:11 +08:00 committed by GitHub
commit 26e7fd8b80
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ _readSubjectFromCSR() {
_usage "_readSubjectFromCSR mycsr.csr"
return 1
fi
${ACME_OPENSSL_BIN:-openssl} req -noout -in "$_csrfile" -subject | _egrep_o "CN *=.*" | cut -d = -f 2 | cut -d / -f 1 | tr -d '\n'
${ACME_OPENSSL_BIN:-openssl} req -noout -in "$_csrfile" -subject | tr ',' "\n" | _egrep_o "CN *=.*" | cut -d = -f 2 | cut -d / -f 1 | tr -d ' \n'
}
#_csrfile