Fix correct name for IP option of subjectAltName

This commit is contained in:
David Rios 2019-09-19 16:23:07 -03:00
parent e4c9b5ed36
commit 3301c09f5c

View File

@ -1409,7 +1409,7 @@ display_san() {
else
san=$(
"$EASYRSA_OPENSSL" "$format" -in "$path" -noout -text |
sed -n "/X509v3 Subject Alternative Name:/{n;s/ //g;p;}"
sed -n "/X509v3 Subject Alternative Name:/{n;s/ //g;s/IPAddress:/IP:/g;p;}"
)
[ -n "$san" ] && print "$san"