Add support for Object Identifier in Subject Alternative Names

See http://openssl.cs.utah.edu/docs/apps/x509v3_config.html:

> The subject alternative name extension allows various literal values
> to be included in the configuration file. These include email (an email
> address) URI a uniform resource indicator, DNS (a DNS domain name), RID
> (a registered ID: OBJECT IDENTIFIER), IP (an IP address), dirName (a
> distinguished name) and otherName.
This commit is contained in:
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ 2020-03-12 09:04:58 +01:00
parent e59911a474
commit 72a9173df7

View File

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