Page 1 of 1

Cert check: Subject Alternative Name/User Principal Name

Posted: Mon Apr 14, 2014 1:09 pm
by Flexstarr
Hello,

as stated in the changelog, OpenVPN has some new features for playing with X509 certs since 2.3.0:
New feature: --x509-track option, more fine grained access to X.509 fields in scripts and plug-ins
New feature: --x509-username-field, where other X.509v3 fields can be used for the authentication instead of Common Name
Challenge:
we would like to check if the user loginname John.Doe@example.com is the same as the "User Principal Name" in the "Subject Alternative Name" field in the client cert.
The value of this field looks like this:
Other Name:
Principal Name=John.Doe@example.com
RFC822 Name=john.doe@example.com
How can this be accomplished?

Re: Cert check: Subject Alternative Name/User Principal Name

Posted: Thu May 22, 2014 8:19 am
by Flexstarr
Nobody did this before?! :roll: