What type of defect/bug is this?
Unexpected behaviour (obvious or verified by project member)
How can the issue be reproduced?
Using a certificate with a subjectAltName:dirName set, FreeRADIUS does not extract the value.
This can be seen by the comment here:
|
#endif /* GEN_OTHERNAME */ |
For example, a certificate with:
Certificate:
Data:
Version: 3 (0x2)
....
X509v3 extensions:
X509v3 Subject Alternative Name:
DirName:/CN=886b45ce-98b2-4d79-9069-c9ff25bc0232
The DirName is not extracted. I expected a field like TLS-Client-Cert-Subject-Alt-Name or TLS-Client-Cert-Subject-Alt-Name-Common-Name to be extracted.
Log output from the FreeRADIUS daemon
(65) TLS-Cert-Serial := "1001"
(65) TLS-Cert-Expiration := "311219083442Z"
(65) TLS-Cert-Valid-Since := "231221083442Z"
(65) TLS-Cert-Subject := "/C=AU/ST=Queensland/O=Blackhats/CN=Blackhats Intermediate CA VPN R1"
(65) TLS-Cert-Issuer := "/C=AU/ST=Queensland/O=Blackhats/CN=Blackhats Root CA R2"
(65) TLS-Cert-Common-Name := "..."
(65) TLS-Client-Cert-Serial := "..."
(65) TLS-Client-Cert-Expiration := "..."
(65) TLS-Client-Cert-Valid-Since := "..."
(65) TLS-Client-Cert-Subject := "/C=AU/..."
(65) TLS-Client-Cert-Issuer := "/C=AU/..."
(65) TLS-Client-Cert-Common-Name := "..."
(65) TLS-Client-Cert-X509v3-Basic-Constraints += "CA:FALSE"
(65) TLS-Client-Cert-X509v3-Subject-Key-Identifier += "..."
(65) TLS-Client-Cert-X509v3-Authority-Key-Identifier += "..."
(65) TLS-Client-Cert-X509v3-Extended-Key-Usage += "TLS Web Client Authentication"
(65) TLS-Client-Cert-X509v3-Extended-Key-Usage-OID += "1.3.6.1.5.5.7.3.2"
Note the absence of a subjectAltName field.
Relevant log output from client utilities
No response
Backtrace from LLDB or GDB
What type of defect/bug is this?
Unexpected behaviour (obvious or verified by project member)
How can the issue be reproduced?
Using a certificate with a subjectAltName:dirName set, FreeRADIUS does not extract the value.
This can be seen by the comment here:
freeradius-server/src/lib/tls/pairs.c
Line 98 in 6e67eea
For example, a certificate with:
The DirName is not extracted. I expected a field like
TLS-Client-Cert-Subject-Alt-NameorTLS-Client-Cert-Subject-Alt-Name-Common-Nameto be extracted.Log output from the FreeRADIUS daemon
Relevant log output from client utilities
No response
Backtrace from LLDB or GDB