add more debug info

This commit is contained in:
neilpang 2017-04-04 22:33:26 +08:00
parent fde8ea081a
commit 7df062b7d7
1 changed files with 1 additions and 0 deletions

View File

@ -1102,6 +1102,7 @@ _readKeyLengthFromCSR() {
fi
_outcsr="$(${ACME_OPENSSL_BIN:-openssl} req -noout -text -in "$_csrfile")"
_debug2 _outcsr "$_outcsr"
if _contains "$_outcsr" "Public Key Algorithm: id-ecPublicKey"; then
_debug "ECC CSR"
echo "$_outcsr" | _egrep_o "^ *ASN1 OID:.*" | cut -d ':' -f 2 | tr -d ' '