[MDEV-10973] X509 verification fails Created: 2016-10-07 Updated: 2017-06-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | SSL |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
X509 verification for subject and issuer is broken: 1) If the client certificate contains utf8-chars (e.g. '/DC=com/L=Москва/DC=example/CN=client')
. Quote from X509_name_oneline() manpage: 2. Verification fails if e.g. attribute in cert is in lower case, while it was specified in uppercase with GRANT before (see RFC 5280) 3. Verification fails, if there additional attributes in the certificates:
but certificate has an additional locality, verification fails, e.g.
|
| Comments |
| Comment by Sergei Golubchik [ 2017-04-24 ] |
|
That's how GRANT works. One needs to specify the exact X509 subject or issuer as returned by X509_NAME_oneline(). This this, basically, the definition of GRANT ... REQUIRE SUBJECT (or ISSUER). |